This seams like something mixing the View and Controller together. Skins aren't meant to perform this kind of action. It would be better to make an extension which handles Breadcrumbs, and insert something generated by that extension into the skin.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Joshua C. Lerner wrote:
On Fri, May 23, 2008 at 3:07 PM, The Gadget Doctor mediawiki@thegadgetdoctor.com wrote:
This one should be easy but it has me going slightly mad on a Friday afternoon...
What little snippet of PHP will return a properly formated URL so that I can have an <a href="<?php what goes here ?> "> tag that links back to the current page?
I'm skinning MW to fit with a site that has a breadcrumb trail on other pages and I want to keep that consistent when users are in the wiki part.
You could do:
<?php global $wgTitle; echo $wgTitle->getFullURL(); ?>
Joshua
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l