Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-07 09:34:17

ultramega
Member
Registered: 2006-02-26
Posts: 221

Category_list - How to exclude empty categories?

In a recent thread I mentioned the way I’m currently using to output alphabet link-list of articles: every article is categorized with it’s starting letter (a,b,c…). Alphabet links are then simply outputted with category_list -tag.

It works well but, currently I have to check manually if there are articles in chosen alphabet. And then include only categories with content in the tag. Is it possible to output category_list dynamically so that empty categories wouldn’t appear as links? Or am I once again missing something :)

The original alphabet links discussion with other solutions too.

Offline

#2 2007-11-07 11:05:41

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Category_list - How to exclude empty categories?

Offline

#3 2007-11-07 13:55:01

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Category_list - How to exclude empty categories?

Thanks, but seems not working; I have parent category “alphabets” which includes letters as sub-cats. It seems still to pick up empty letters (cats).

Offline

Board footer

Powered by FluxBB