I need to grab all the categories of a page as an array. This feels like a noob question, but how would I obtain an array of categories solely from a skin file?
Only category reference in the QuickTemplate skin class seems to be QuickTemplate::data['catlinks'], which has a div containing links in it.
Any solutions? - Hunter F.
On Sat, 05 Nov 2011 10:14:09 -0700, Hunter Fernandes h.g.fern@gmail.com wrote:
I need to grab all the categories of a page as an array. This feels like a noob question, but how would I obtain an array of categories solely from a skin file?
Only category reference in the QuickTemplate skin class seems to be QuickTemplate::data['catlinks'], which has a div containing links in it.
Any solutions?
- Hunter F.
For now you'll have to use:
OutputPage::getCategories OutputPage::getCategoryLinks
wikitech-l@lists.wikimedia.org