No Code Attached Yet
avatar rish106-hub
rish106-hub
16 Jun 2026

What happened?

In the Articles - Newsflash module (mod_articles_news), when the module is set to show the Full article image, the image caption is not displayed if the article has a full-text image caption but no intro image caption.

The cause is a copy-paste error in the helper. In modules/mod_articles_news/src/Helper/ArticlesNewsHelper.php the full-text branch guards the caption assignment with the intro caption field instead of the full-text caption field:

} elseif ($params->get('img_intro_full') === 'full' && !empty($images->image_fulltext)) {
    $item->imageSrc = htmlspecialchars($images->image_fulltext, ENT_COMPAT, 'UTF-8');
    $item->imageAlt = htmlspecialchars($images->image_fulltext_alt, ENT_COMPAT, 'UTF-8');

    if ($images->image_intro_caption) {   // should be image_fulltext_caption
        $item->imageCaption = htmlspecialchars($images->image_fulltext_caption, ENT_COMPAT, 'UTF-8');
    }
}

The intro-image branch immediately above is correct (it guards on image_intro_caption and sets image_intro_caption). Only the full-text branch references the wrong field in the if guard.

The correct field is used in the core layouts — layouts/joomla/content/full_image.php checks image_fulltext_caption for the full image — confirming the helper guard is wrong.

Steps to reproduce

  1. Create an article. Under Images and Links, set a Full Article Image and fill in its Caption. Leave the Intro Image Caption empty.
  2. Create an Articles - Newsflash module pointing at that article's category.
  3. In the module options, set the image to Full.
  4. View the frontend.

Expected result

The full-text image caption is displayed under the image.

Actual result

No caption is displayed.

Version

5.4

Additional comments

The intro-image branch in the same method is correct; only the full-text branch references the wrong field. One-line fix: change the guard from image_intro_caption to image_fulltext_caption.

avatar rish106-hub rish106-hub - open - 16 Jun 2026
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jun 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jun 2026
avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

gh issue comment 47967 --repo joomla/joomla-cms --body "@chmst — Flagging a copy-paste error in mod_articles_news. Full-text image caption guard checks wrong field (image_intro_caption instead of image_fulltext_caption). Repro steps included."

avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

gh issue comment 47967 --repo joomla/joomla-cms --body "@chmst — Flagging a copy-paste error in mod_articles_news. Full-text image caption guard checks wrong field (image_intro_caption instead of image_fulltext_caption). Repro steps included."

avatar rish106-hub
rish106-hub - comment - 16 Jun 2026

@chmst — Flagging a copy-paste error in mod_articles_news. When showing the full-text image, the caption guard checks image_intro_caption instead of image_fulltext_caption. Result: caption silently dropped if article has fulltext caption but no intro caption. Repro steps in the issue description.

Add a Comment

Login with GitHub to post a comment