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. <[EMAIL PROTECTED]> 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: #!/bin/sh wikidir=/srv/www/htdocs/pmwiki (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/$/]]\\\\/' _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users