Keyword

How to extract tag ID?

  • Ørjan Jørgensen
  • Ørjan Jørgensen's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #87539 by Ørjan Jørgensen
How to extract tag ID? was created by Ørjan Jørgensen
Hi!I have a client that is using icons instead of tag names. They wish to use these icons throughout the site, using K2 tags.Each tag has an ID, and I want to use this ID to assign a CSS selector in order to show the icon instead of the tag name.The first challenge was in the K2 item view, and I was able to get the ID's by simply echoing <?php echo $tag->id; ?>. It works like a charm so far, and I can assign the different CSS selectors to the tags in the item view.(this modification was done in com_k2/templates/default/item.php - line 333)The second challenge is to do the same in the tag cloud module. I tried echoing the same string value in the module html template, but nothing returns and I don't know how to extract the tag ID from the module.(I am trying this mod in mod_k2_tools/tmpl/tags.php - line 18)Can anyone help me to extract the tag ID in the module? Any clues would be highly appreciated, thanks in advance!

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

More
2 years 10 months ago - 2 years 10 months ago #179806 by shannon briggs
Replied by shannon briggs on topic How to extract tag ID?
I would also like to know this.
How can I echo the Tag ID in mod_k2_tools/tag.php ?
Last edit: 2 years 10 months ago by shannon briggs.

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


Powered by Kunena Forum