Keyword

Add label to featured articles in mod_k2_content (bis)

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 5 months ago #179154 by STEPHAN HERBY
Sorry for my first topic with same title, the code added broke the topic...
Hi K2 teams,
I would like to add a label to featured articles in the mod_k2_content.
I don't know how to get this info. Something like :
https://www.dropbox.com/s/im776ox6yfnwlel/k2-add-label-featrured-article.png?dl=1

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

More
3 years 5 months ago - 3 years 5 months ago #179173 by JoomlaWorks
Use something like this within the "foreach" loop:

<?php if ($item->featured): ?>
This item is featured so show or do something
<?php endif; ?>

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 3 years 5 months ago by JoomlaWorks.

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

  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 5 months ago #179177 by STEPHAN HERBY
Replied by STEPHAN HERBY on topic Add label to featured articles in mod_k2_content (bis)
Hi Fotis,
exactly what I needed.
Thanks you rocks! :-)

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


Powered by Kunena Forum