[Mediawiki-l] Categories of current page

Andreas Rindler mediawiki at jenandi.com
Wed Sep 5 11:13:13 UTC 2007


Hi,
I am creating a tag extension that uses the categories of the current page.
How can I get a list of all categories that are assigned on the page?

And I don't want the parent categories. I have found
    $wgPageTitle = $parser->getTitle();
    $wgParentCats = $wgPageTitle->getParentCategories();
but it lists all the parent categories as well.

Thanks,
Andi


More information about the MediaWiki-l mailing list