How to show tags_title in template

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
oschibsted
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Apr 01, 2019 8:33 am

How to show tags_title in template

Post by oschibsted » Mon Apr 01, 2019 8:48 am

Hello!

I am running Joomla version 3.9.4

I have a menu item of type "Tagged Items" on my site, that lists all articles related to ONE tag. I want to show this tag in the header of index.php when in one of these menu items .

I managed to get this to work with article-titles with some custom php-code in index.php, but i cannot get it to work with this tag-title.

This is the title i want to include in the header (from components/com_tags/views/tag/tmpl/default.php):

<h2>
<?php echo JHtml::_('content.prepare', $this->tags_title, '', 'com_tag.tag'); ?>
</h2>

Is it possible to include this title where i want it in index.php? I have tried to find a solution for this for days, but i cannot figure it out. Any help is very much appreciated.

Locked

Return to “Templates for Joomla! 3.x”