Keyword

K2 Featured at tag.php

  • Gastón Camaño
  • Gastón Camaño's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #157517 by Gastón Camaño
K2 Featured at tag.php was created by Gastón Camaño
Hi to everyone, i need to show the featured icon (or something, it doesn't matter what, i'll change it later), at the k2 tag menu item result. I did a print_r($item) in the tag.php file at the k2's template that i'm using, but it doesn't show anything about the featured option. So i'm out of ideas.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157575 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Featured at tag.php
Hello Gaston,

While the featured flag is not available in the tag.php template, the flag ($item->featured) is still present and functioning.

You can use the same if/else check for $item->featured and echo a custom class.

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

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

  • Gastón Camaño
  • Gastón Camaño's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #157587 by Gastón Camaño
Replied by Gastón Camaño on topic K2 Featured at tag.php
It works, i added " <?php if($item->featured): ?> <div class="feature-tag"><span>Test text</span></div> <?php endif; ?> " to the tag.php

Thanks for the help

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157590 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Featured at tag.php
You 're welcome Gastón :)

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

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


Powered by Kunena Forum