The first answer works just fine (for now?) but, I soon realised, <a href=""> would achieve much the same result, a link back to the current page :-)
I'm not really putting a true breadcrumb. The wiki site is integrated into a set of static html pages built with a tool called RapidWeaver on the Mac.
This puts a very simple breadcrumb link on the bottom of each page. For the purposes of integrating the wiki, I have a skin that takes its design from the RapidWeaver program and combines that with the php from Monobook. This combination happens whenever I rebuild and publish the site from inside RapidWeaver. That means changes to the menu structure (outside of MediaWiki) get made on all MediaWiki pages instantly.
It's all working rather nicely now and most people won't really know when they're in the static site and when they're in the wiki.
GD.
On Fri, May 23, 2008 at 4:20 PM, DanTMan dan_the_man@telus.net wrote:
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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l