質問

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