Configuring yambe breadcrumbs extension for mediawiki
From Notes_Wiki
Configuring yambe breadcrumbs extension for mediawiki
To configure yambe breadcrumbs extension for mediawiki use following steps:
- Create a folder named 'yambe' in 'extensions' folder
- Get code for 'yambe.php' from http://code.google.com/p/yambe/source/browse/trunk/yambe.php and save it as yambe.php in yambe folder.
- Raw code is available at http://yambe.googlecode.com/svn/trunk/yambe.php
- Add following lines to 'LocalSettings.php' file
- #Enable yambe Breadcrumbs extension
- require_once("extensions/yambe/yambe.php");
- Add following line to mediawiki code of Main Page, preferably at top where you want breadcrumbs to appear
- <yambe:breadcrumb self="Home"/>
- Replace "Home" with suitable name for Main Page, such as "Main Page", "/" etc., if required
- For all pages inside "Main Page" or "Home" use following to indicate to yambe that the page is child page of "Main Page"
- <yambe:breadcrumb self="<Child Page Title>"><Parent Page> | <Parent Page Title></yambe:breadcrumb>
- Here, <Child Page Title> should be replaced by title of child page, <Parent Page> should be replaced by name of parent page as per wiki and <Parent Page Title> should be replaced by title to be displayed for Parent Page. For Example
- <yambe:breadcrumb self="About wiki">Main Page|Home</yambe:breadcrumb>
- Note that:
- Specifying value for self attribute is optional. In case value is not present then title of the page is displayed as the part of breadcrumbs.
- Parent page should be specified by exact case. The yambe breadcrumbs plugin is case sensitive, even if mediawiki is not.
- Try the same for child page of child page to understand the process properly.
Note that for the new pages the yambe extension displays the yambe breadcrumb automatically at top. Hence the manual addition of tags has to be done only for existing pages of wiki while migrating / shifting to use of yambe breadcrumbs plugin.