Search
Other Articles Anywhere questions
Forum

Want to get list of categories

FLAME University's Avatar FLAME University
Hello Team,

So we want to display a list of categories and there articles count.
example:
main category name is master and it have multiple Childs
so structure we want is like

master category name
Child (3)
Childs (4)
Childd (😎
Childr (6)

we require/want to show only below part:

Child (3)
Childs (4)
Childd (😎
Childr (6)
Peter van Westen's Avatar Peter van Westen ADMIN
Try something like:
{articles category="Master" include-child-categories="true" one-per-category="true"}
   [category] ([total-no-limit])
{/articles}
(indentation and new lines for readability here)


The above example will not output any empty categories. Getting the data from empty categories is not possible with Articles Anywhere, as is focuses on the articles and gets the data from that point upwards.

If the Master category also contains articles, then you could add an {if} tag to ignore the output when it is that category.

See the documentation for more info on the different filters and tags:
docs4.regularlabs.com/articlesanywhere/p...nge-one-per-category
docs4.regularlabs.com/articlesanywhere/d...rom-specific-article
docs4.regularlabs.com/articlesanywhere/data-tags/numbers#totals
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription