Hi Adam,
$wgTitle is available to you in the skin. You can do
$checks = $wgTitle->getParentCategories();
if ( in_array($myCat, $checks) ) { //whatever }
-Courtney
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Adam Meyer
Sent: Friday, April 25, 2008 10:18 AM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Check if page belongs to a certain category?
(skin level)
If there a way to check if a page is part of a certain category from
the skin level.
I know it is probably unorthodox, but 90% of what I do on my wiki is,
but I need a new tab to appear only if an article is part of certain
categories. Right now I have the tab, but it appears on every page.
Thanks,
-Adam
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l