Difference between revisions of "Configuring yambe breadcrumbs extension for mediawiki"

From Notes_Wiki
m
m
Line 23: Line 23:
#:::<yambe:breadcrumb self="About wiki">Main Page|Home</yambe:breadcrumb>
#:::<yambe:breadcrumb self="About wiki">Main Page|Home</yambe:breadcrumb>
#::</pre>
#::</pre>
#: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.
#Try the same for child page of child page to understand the process properly.
#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.
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.

Revision as of 08:02, 2 December 2012

Configuring yambe breadcrumbs extension for mediawiki

To configure yambe breadcrumbs extension for mediawiki use following steps:

  1. Create a folder named 'yambe' in 'extensions' folder
  2. 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
  3. Add following lines to 'LocalSettings.php' file
    #Enable yambe Breadcrumbs extension
    require_once("extensions/yambe/yambe.php");
  4. 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
  5. 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.
  6. 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.