No Code Attached Yet Information Required
avatar peterhulst
peterhulst
17 Jan 2024

Is your feature request related to a problem? Please describe.

In Joomla 3 it was possible to display an image instead of a text for the syndication.
In Joomla 4/5 you are not able to display an icon only. The class .icon-feed can be overriden with a background image (see additional context) but it is never displayed (no text before possible in: aria-hidden="true">';
Also: in the code for the syndication module in J4/5 (see additional context) the variable $textClass is mentioned, but it is not set and thus empty.

Describe the solution you'd like

Modify the syndication code just as in Joomla 3

Additional context

Possible override for icon-feed:

<style type="text/css"> .icon-feed { background: url(media/system/images/livemarks.png) no-repeat; } Code mod_syndicate: default.php from J4.4.2 $linkText = ''; $linkText .= '' . (!empty($text) ? $text : Text::_('MOD_SYNDICATE_DEFAULT_FEED_ENTRIES')) . '';
avatar peterhulst peterhulst - open - 17 Jan 2024
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jan 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jan 2024
avatar Quy Quy - change - 17 Jan 2024
The description was changed
avatar Quy Quy - edited - 17 Jan 2024
avatar Quy Quy - change - 17 Jan 2024
The description was changed
avatar Quy Quy - edited - 17 Jan 2024
avatar brianteeman
brianteeman - comment - 24 Jan 2024

In Joomla 4/5 you are not able to display an icon only.

Yes you can

image

image

avatar Quy Quy - change - 24 Jan 2024
Labels Added: Information Required
avatar Quy Quy - labeled - 24 Jan 2024
avatar peterhulst
peterhulst - comment - 25 Jan 2024

Hello,
When display label = No, also no image is displayed.
(a link to an image in the label is not possible).

avatar brianteeman
brianteeman - comment - 25 Jan 2024

I just looked at the module in j3 and the options are exactly the same https://docs.joomla.org/Help310:Extensions_Module_Manager_Syndication_Feeds/en

avatar peterhulst
peterhulst - comment - 25 Jan 2024

The options are indeed the same, but the implementation in J3 is different.
In J3 : system/livemarks.png is added as feed-image, while in J4/5 it isn't.

avatar brianteeman
brianteeman - comment - 25 Jan 2024

I doubt very much that anyone would want to undo that change. To achieve what you want (sorry it wasn't clear before) you can simply do a template override for the module

avatar peterhulst
peterhulst - comment - 25 Jan 2024

Okay Brian, I will make a template override. Thanks.

avatar alikon alikon - change - 26 Jan 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-01-26 07:34:01
Closed_By alikon
avatar alikon alikon - close - 26 Jan 2024
avatar alikon
alikon - comment - 26 Jan 2024

closing as solvable with template override

Add a Comment

Login with GitHub to post a comment