[pmwiki-users] How to generate a list of categories?

Sebastian Siedentopf schlaefer at macnews.de
Wed Jul 19 16:08:01 CDT 2006


Am 19.07.2006 um 19:13 schrieb christian.ridderstrom at gmail.com:

> I'd like to generate a list of all categories that exist, how can I  
> do this?
>
> This recipe is about how to do this
> 	http://www.pmwiki.org/wiki/Cookbook/ListOfCategories
>
> but unfortunately all it does is the following:
>
> 	(:pagelist group=Category list=normal:)
>
> As far as I can tell that will only list the pages in the group  
> Category, so if a category doesn't have a page, it won't show up.
>
> What I am looking for is a method to list all categories, including  
> the categories that do not have a corresponding page.

I wrote a little script that does this. It is not tested with the  
latest PmWiki builds and maybe not recipe quality, but I append it so  
you can try it out if you want. The markup (:CategoryIndex:) should  
give you a simple bullet list with all categories.

Sebastian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: categoryindex.php
Type: text/php
Size: 3160 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060719/21dab22c/attachment.bin 
-------------- next part --------------




More information about the pmwiki-users mailing list