Keyword

How to publish two specific tags to another position

More
8 years 4 months ago - 8 years 4 months ago #154301 by karlo
How to publish two specific tags to another position in the article
 <?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
	  <!-- Item tags -->
	  <div class="itemTagsBlock">
		  <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
		  <ul class="itemTags">
		    <?php foreach ($this->item->tags as $tag): ?>
		    <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li>
		    <?php endforeach; ?>
		  </ul>
Last edit: 8 years 4 months ago by karlo.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 4 months ago #154307 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic How to publish two specific tags to another position
Hello,
Which specific tags do you mean ?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #154333 by Mihail Novak
Replied by Mihail Novak on topic How to publish two specific tags to another position
I want to publish under the article title tags other than those which are under article

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #154337 by karlo
Sorry for the double post :)

I want to publish under the article title tags other than those which are under article

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154341 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to publish two specific tags to another position
Ok, basically we are talking about two sets of tags.
It can be done with an if/else statement checking the tag's name ($tag->name) for example, it the first set is always fixed.
This means that you can use this solution if you only print certain tags in the top.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #154342 by karlo
Yes, that's what I want, two sets of tags!
But I do not know how to do it. thanks!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum