문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top