Last modified: 2010-05-15 14:36:26 UTC
Halló! both http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=MediaWiki_talk:Choosenamespace&action=edit and http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=MediaWiki_talk:Recentchangestext&action=edit start with <pre> [[Category:Follow me|{{PAGENAME}}]] [[Category:Todo]] </pre> Nevertheless as you can see at http://jadesukka.homelinux.org:8180/betawiki/Image:Category_path.jpg the order how category paths are displayed differs What should be done: a) (easy to implement) displaying the paths in alphabetical order maight be generic but it does not offer a possibility to influence it b) (more usefull ?) display the paths in the order as specified in the code but AVOID duplicate paths. Regards Reinhardt [[user:gangleri]]
additional link: http://jadesukka.homelinux.org:8180/betawiki/Bugzilla_2108
Halló! Another example is available at: http://jadesukka.homelinux.org:8180/betawiki/Image:Category_path_02.jpg Regards Reinhardt [[user:gangleri]]
The tree of categories is inverted :/ Need to find a way to inverse it before sorting. A path showing like: [[world]] > [[europe]] > [[germany]] [[america]] > [[mexic]] Is stored as: array( germany => array( europe => array( world ) ), mexic => array( america ) ) So we need to find a way to inverse it to: array( world => array( europe => array( germany ) ), america => array( mexic ) ) And sort that :)
Fixed in HEAD and 1.5, should be available in RC3 / 1.5.0. I made a quick hack that just sort the entries. There's some issues with categories without content as the script sort using the rendered link. I am too lazy to properly fix it and the hack does the job.
changed url because Betawiki moved test case / sample url: http://idler.paivola.fi/betawiki/Albert_Einstein Thanks Ashar fro fixing this (the order)! Probably the paths should be unique.