How to show Tags in Article not in Category Blog?

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
User avatar
TheAnt
Joomla! Explorer
Joomla! Explorer
Posts: 394
Joined: Wed Aug 31, 2005 7:43 am
Location: Milano - Italy

How to show Tags in Article not in Category Blog?

Post by TheAnt » Wed Jul 28, 2021 8:38 am

Hello
from a menu item how to show Tags in Articles and not in Category Blog?
Thanks

embedNZ
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Jul 27, 2021 1:52 am

Re: How to show Tags in Article not in Category Blog?

Post by embedNZ » Thu Jul 29, 2021 3:06 am

Should be a setting under article config/category options.

Or in your override you can use this:

Code: Select all

<?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
Should be ways to do it by using custom modules/overrides aswell. if your menu item isn't a content page then you can do it via a custom module and override it with a PHP code and select the tags directly from DB


Post Reply

Return to “General Questions/New to Joomla! 3.x”