Keyword

Write query to retrieve count of items published to subcagegories

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
5 years 2 days ago #173731 by George Nasis
Hallo,

I am trying to retrieve the total count of items published in categories B C D E F, ...., Z all children of A categories.

Can I write something to retrieve directly from A instead to include all the children categories?

Thank you

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

More
5 years 1 day ago #173734 by JoomlaWorks
A good starting point is the helper.php file of the K2 Content module: github.com/getk2/k2/blob/master/modules/mod_k2_content/helper.php#L94

The code starting from github.com/getk2/k2/blob/master/modules/mod_k2_content/helper.php#L135 clearly shows how to grab the items from children categories.

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

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
5 years 1 day ago #173737 by George Nasis
You are right Fotis thank you very much!

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

More
5 years 1 day ago #173740 by JoomlaWorks
You're welcome.

Fotis / 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