Extension talk:CategoryBreadcrumb
WARNING: This doesnt work on 1.10.1
It does work on 1.11 and all other version just dont forget to put $wgUseCategoryBrowser = true; in localsettings
Shows duplicate categories
editI don't know why, but for some reason this script seems to show duplicate categories. For example, if I have a mediawiki entry tagged as category "person", the breadcrumb for person will show up 2 or 3 times when I use this extension. Any ideas why?
I have also noticed this bug. I am hoping to try to debug this if no one else already has.
Version
editSame here on Mediawiki 1.11. Breaks the whole point of using this extension. Very good idea otherwise. Tonticologo
- Agree with point above. I see same problem (sometimes) with MW 1.13.2. Is anybody working to solve? --Robinson Weijman 15:47, 3 March 2010 (UTC)
The sources do not match
editthe php program sources are different. The source on this site and the one on the download site (http://www.leerwiki.nl/How_to_create_breadcrumb_with_Mediawiki) are not the same. I'm not a php expert so I don't have much of an explanation; however, the one on the leerwiki site gave me an error while the one on this site works w/o any prob.
Problem in 1.15
editI have installed this and the breadcrumb appears, however all the content of the page has been shifted into the "catlinks" div. Any ideas why this might have happened?
multiple breadcrumb trails
editHey, any way to get multiple trails to appear if a page is in two categories? ideally it should look like start -> major cat1 -> sub cat2 -> currentpage start -> major cat3 -> sub cat4 -> currentpage
--My edit does that, see my user page or the link below --Cm 11:43, 29 October 2009 (UTC)
Left Pane Navigation moves to the bottom of the page
editWe attempted to implement this extension, but it pushed the main navigation menu on the left pane all the way to the bottom left of the page. Users do not see the menu anymore unless they scroll all the way to the bottom of the page.
I get the same thing
editIt seems to only happen to the main page. Navigating to other pages, places the sidebar in its normal position. Anybody have an idea on how to fix this?
- Me too (MW 1.13.2) --Robinson Weijman 08:26, 4 March 2010 (UTC)
Hi,
Is this problem resolved? Here I'm facing the same problem. Can anyone help?
Edits to include Start Link and support for Image pages
editI put these minor changes to the source code here: User:Cm#Updates_to_CategoryBreadcrumb --Cm 11:43, 29 October 2009 (UTC)
Left Pane Navigation moves to the bottom of the page
editSame here
editI so want this to work...
Skin.php
edit// <-- !!! $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) ); <br /> //$s .= '<div id="mw-normal-catlinks"> 1 ' . <br /> // $this->link( Title::newFromText( wfMsgForContent( 'pagecategorieslink' ) ), $msg ) <br /> // . $colon . $t . '</div>';
Demo: Буддизм
Hi,
What does it mean? Will it fix any of the above problems?
Other defect: text size increase
editIn addition to the #Shows duplicate categories and #Left Pane Navigation moves to the bottom of the page I saw above:
- When viewing pages, The text in the my talk / my preferences bar gets bigger. This does not occur when viewing categories.
--Robinson Weijman 15:53, 3 March 2010 (UTC)
- I kind of have the same problem, but mine get smaller, did anyone figured out what tags it is messing with and how to prevent it?
- It's a bodge, I know, but this works for me. I just changed the combine line by adding in some css styling on the links and then putting in a font-size for the following text (you'll have to remove the space between the < and the DIVs in the final line below to get it to work):
- // set tree on top of text and register into $tpl
- // $combine = $tree[1].$wgOut->mBodytext;
- $combine="< div style='font-size:11px;margin:10px;'>".$tree[1]."</div>"."< div style='font-size:14px;'>".$wgOut->mBodytext;
MW 1.16.0 bug
editUsing with subj version results in exception when open category or special pages, though leaf pages are displayed properly.
Fix:
- Use code from wiki page, not from 'download' URL.
- Another way - comment string "if ($wgArticle->getTitle()->mNamespace != 0) return $out;" (not sure if it's secure)
Kills categories on the bottom
editI don't know PHP so I need help from someone. This extensions adds bread crumb on the top and kills the categories on the bottom of the page. What do I need to remove or add to the PHP code so that it doesn't remove categories on the bottom? I tried to comment out this line $p->set( 'catlinks', ''); What it did is that it kept the categories but it also added another bread crumb trail to the bottom, any ideas how i can remove that bread crumb trail?
Several bug-fixes
editThe following code-changes will fix the #Other defect: text size increase and #Kills categories on the bottom bug and avoid an error, if an article is not categorized (e.g. the Mainpage).
- comment
$p->set( 'catlinks', '');
(line 35) - add the following lines after the commented line 35:
$simplecatlist = explode('<br />', $q->getCategories());
$p->set( 'catlinks', $simplecatlist[0].'</div>');
- change
$combine = $tree[1].$wgOut->mBodytext;
(line 38) to$combine = '<div>'.$tree[1].$wgOut->mBodytext;
- add
if ($q->getcategorylinks() == null) return true;
afterif ($wgArticle->getTitle()->mNamespace != 0) return true;
(line 29).
In category pages, the breadcrumb trail ends in the bottom
editMediawiki 1.16.5, installed the patched version according to this talk; it happens that in the category: pages the breadcrumb trail ends in the bottom div with id='catlinks'; is there a workaround for that, or how can i build one, given that i have little knowledge of the mediawiki API?
Does it work with MediaWiki 1.17.0?
i dont use mw 1.17, too much customisations i made, is important for me to make it work on 1.16.5
[still the original poster] Any body can give me a hint on how to fix the code so that the breadcrumbs will appear only on the top?
Undefined variable: final_last_parent in /xxx/extensions/CategoryBreadCrumbs/CategoryBreadCrumbs.php on line 95
editI get the error: Notice: Undefined variable: final_last_parent in /xxx/extensions/CategoryBreadCrumbs/CategoryBreadCrumbs.php on line 95 on the top of my page http://xxx/Alerts --User:LTech 9 April 2013 (UTC)
- To remove the error I added on line 74
$last_parent = ''; $final_last_parent = ''; //added to remove error on alert page $last_text_modified = strtolower(str_replace(" ","-",$last_text));
--User:LTech 9 April 2013 (UTC)
Links to authors page are not working for me, are they dead?
editLicense ?
editHello,
What is the license of this extension? We would like to fork it but it needs to be FOSS...
--2A01:E35:8A04:870:F823:AD74:88C8:7FA0 20:35, 7 April 2016 (UTC)
- I guess, as it's code is included within this wiki, you could assume it's licensed the same as all content here (i.e. CC BY-SA 3.0). I'm no lawyer though! :-) Sam Wilson 12:13, 3 August 2016 (UTC)
It is working on MW 1.27?
editHello, when I try to use the extension on MW 1.27.1 the wiki does show the breadcrumb. Does anybody know something about that?
Thanks!