No Code Attached Yet bug
avatar GixxerMKD
GixxerMKD
22 Aug 2022

Steps to reproduce the issue

Check the RSS feed for any tag (Menu Item Type: Tagged Items)

Expected result

RSS feed should contain intro image in and should show the article category in .

Actual result

The field does not include the intro image.
The item in the RSS feed is not the article category but it shows the items Title instead.

System information (as much as possible)

Joomla 4.1.5
PHP 8.0

Additional comments

This is the file in question:
components/com_tags/src/View/Tag/FeedView.php

no image and wrong code for category:
($feeditem->category = $title;)

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
5.00

avatar GixxerMKD GixxerMKD - open - 22 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Aug 2022
avatar GixxerMKD GixxerMKD - change - 24 Aug 2022
The description was changed
avatar GixxerMKD GixxerMKD - edited - 24 Aug 2022
avatar GixxerMKD GixxerMKD - change - 24 Aug 2022
The description was changed
avatar GixxerMKD GixxerMKD - edited - 24 Aug 2022
avatar GixxerMKD GixxerMKD - change - 24 Aug 2022
The description was changed
avatar GixxerMKD GixxerMKD - edited - 24 Aug 2022
avatar GixxerMKD GixxerMKD - change - 24 Aug 2022
The description was changed
avatar GixxerMKD GixxerMKD - edited - 24 Aug 2022
avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar mentalhacker
mentalhacker - comment - 14 Jul 2023

We have the same problem. In the case of tagged items menu, the intro image is missing from the feed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38548.

avatar keep
keep - comment - 14 Jul 2023

same here


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38548.

avatar keep
keep - comment - 24 Jul 2023

About intro image:
com_tag's FeedView doesn't handle intro images like com_content does.
To fix, I added to the use block:
use Joomla\CMS\HTML\HTMLHelper;

And this for the loop:
$obj = json_decode($item->core_images);
$img = '';
if (!empty($obj->image_intro)) {
$img = '

' . HTMLHelper::_('image', $obj->image_intro, $obj->image_intro_alt) . '

';
}

And
$description = $img.$item->core_body;


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38548.

avatar mentalhacker
mentalhacker - comment - 16 Aug 2023

Thanks for the solution. It works perfectly.
This code snippet should be integrated in the next version of Joomla.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38548.

Add a Comment

Login with GitHub to post a comment