[pmwiki-users] List Categories

Chris Cox ccox at airmail.net
Thu Jan 10 19:29:19 CST 2008

Sandy wrote:
> Simon wrote:
>> You can't.
>> See http://pmwiki.org/wiki/Category/Category
>> and vote for http://www.pmwiki.org/wiki/PITS/00447
>> On 11/01/2008, Jorge Efrain Mamani C. <efranet.bo at gmail.com> wrote:
>>> How I can list all the existing categories. Only I see to list the pages
>>> that connect to a category. Thanks
> I did some more looking and found this one:
> http://pmwiki.org/wiki/Cookbook/ListCategories
> There's a lot of programmer-speak in the comments, but I didn't read 
> them carefully enough to see if it's broken, difficult to use, or just 
> more ideas springing off the first one.

We use the following script (shell script) to generate a list and then wrote
some markup to call it:



(cd ${wikidir}/wiki.d
ls | grep -v ,del | xargs cat  | grep  '^targets='  | sed 's/targets=//' |
 tr ',' '\012' | grep Category |sort -u) |
 sed -e 's/^Category\.\(.*\)/Category.\1\?action=browse|\1/' -e 's/^/[[/' -e 's/$/]]\\\\/'

More information about the pmwiki-users mailing list