Keyword

Get items tags of specific K2 category

  • NaDu Design
  • NaDu Design's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 19 hours ago #177708 by NaDu Design
Get items tags of specific K2 category was created by NaDu Design
Hi.
I need to get all the items tags of specific K2 category as object in templates/mytemplate/html/com_k2/default/category.php. Something like:
foreach($this->category->items as $item) {
echo $item->tags;
}
but ALL the items of the current category.
Thanks

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 10 hours ago #177750 by Fotis
Replied by Fotis on topic Get items tags of specific K2 category
The tags can be in the thousands. Is this practical for some reason?

Even if you only use a handful of tags, it's most likely a direct SQL query is faster that combining data that comes from K2's data models.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum