Extension talk:BreadCrumbs2

Header problem
When I enable this extension, I get an error about the headers already being sent by BreadCrumbs2.php from WebResponse.php (specifically Warning: Cannot modify header information - headers already sent by (output started at /xxxx/mediawiki-1.11.0/extensions/BreadCrumbs2.php:204) in /xxxx/mediawiki-1.11.0/includes/WebResponse.php on line 10.  Any hints as to how I might fix this? 129.21.126.84 03:32, 8 October 2007 (UTC)

Save your document (php) as plain text, not as utf encoded.


 * ok that did it, thanks 129.21.126.84 21:57, 8 October 2007 (UTC)

recharge
Well, I had the exact same problem, but the encoding was plain text: /etc/mediawiki/LocalSettings.php:              text/plain; charset=us-ascii /var/lib/mediawiki/extensions/BreadCrumbs2.php: text/plain; charset=us-ascii
 * 1) file -i /etc/mediawiki/LocalSettings.php  /var/lib/mediawiki/extensions/BreadCrumbs2.php

The real cause has to do with white spaces outside of the php start and end tags, see this link from Tech Recipes

Link crumbs to normalpages
add around line 40:

// Link crumbs to normal page, not to category page $tree[1] = preg_replace('/Category:/','',$tree[1]);

Remove Current Page Name from Breadcrumb?
{|width="95%" align="right"
 * Hi there. I'm loving this extension.  Thank you very much!  Is there any way to remove the current page name from the outputted breadcrumb?  The reason I ask is because now that I have this extension every page that does not need/have a breadcrumb has the page name in place of it making it look something like this:

Main Page
Main Page

Thank you! Schot 22:53, 16 November 2007 (UTC)
 * }

Response:
Try adding these lines to the MediaWiki:Breadcrumbs page and add your Main Page to a category called "Main Page":

* Main Page @ * default  @ Main Page >

It works for me! I too think this is a brilliant solution to getting breadcrumbs.

147.209.216.245 23:21, 24 January 2008 (UTC)

Number of Levels, something is wrong..
Hi, first of all: Great extension!! Please excuse so many questions, I am a dummy and I suppose the biggest is issue is that I do not get the (digital) logic behind this functions.

I am about to create an extremely structured Wiki, which implies also many levels. Eerythink is fine, but I do net get the following to work - the LeedsAccommodation line does not work at all.. * Going-to @ GoErasmus > Living Abroad > Going-to > * Living Abroad @ GoErasmus > Living Abroad > * LeedsAccommodation @ GoErasmus > UK > Leeds > Accommodation > * Leeds @ GoErasmus > United Kingdom > Leeds > * United Kingdom @ GoErasmus > United Kingdom > Page: [www.goerasmus.eu] Furthermore, I'd like to kill the UK in the LeedsAccommodation line, can I do this?? And how should I sort the lines in BreadCrumb then..

If it is a feature, it would be nice to describe on the extension page itself. My thesis is that many dummies are coming now and open a wiki… Thanks again for the great work! --Jorgusch 12:48, 12 June 2008 (UTC)
 * Btw, the solution for the Main Page does not work for me.
 * You mention above a way to link normal pages with breadcrumb–what I would like to do. How does it work then? Where does BreadCrumb know from, which line to choose? - See my 'logical question' above..

Does this (great) extension works with MW 1.13?
Its behaviour is strange, it doesn't recognize the my category "Home". 88.9.73.154 21:05, 1 August 2008 (UTC)

Breadcrumbs displaying only current page
I defined breadcrumbs for my page at Mediawiki:Breadcrumbs on my media wiki like this: * Finance @ Nlpedia > Finance >
 * Business @ Nlpedia > Finance > Business >

As a result I got breadcrumbs, but it only displays the lowest level for current page(the name of the article or category) but there's no link to the main page (or category when I'm in an article). Am I missing something here? Did I make some syntax error? Are there any additional things I should to make it work?