Question

I have added some tags and linked these to an article. On the front end the tags appear on top (i.e. before) the article text. Instead I would like to display them at the bottom (i.e. after) the article.

I assume I have to make an override of layouts/joomla/content/tags.php

Was it helpful?

Solution

Create a Template Override for the following file:

components/com_content/views/tmpl/default.php

Once done, open this file in your override location and go to line 157 and you will see the following:

<?php if ($params->get('show_tags', 1) && !empty($this->item->tags)) : ?>
    <?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?>

    <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
<?php endif; ?>

Move this section of code somewhere futher down in the file to suit your needs

Hope this helps

OTHER TIPS

This can be easily achieved by simply changing the Position Of Article Info to "Below" in Options Tab in Joomla Menu. The Joomla menu has to be of Type "Article"

No need to create any override. Hope this helps. See attached screenshot. Position of Joomla Tags

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top