Hi, I enabled subpages on the main namespace:
$wgNamespacesWithSubpages = array( NS_MAIN => true, );
However, now every page title displays the entire page hierarchy. For example, if I have a page called "mammals" and a subpage of "mammals" called "elephants," the "elephants" article will have the title: "mammals/elephants".
How do I disable it so that subpage titles do not include the entire hierarchy in its name?
thanks
Linus
--------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
--------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
On 23/07/07, Linus Chu trickywiki@yahoo.com wrote:
How do I disable it so that subpage titles do not include the entire hierarchy in its name?
You alter the code. Remember, subpages in MediaWiki have little recognition or importance beyond a few very small features.
Of course, if you truncate the page title, then users aren't going to be able to work out how to link to the page...
Rob Church
I still want the breadcrumb feature that subpages automatically have, I just don't want the title at the top of the page to have a whole bunch of forward slashes in it. Should I modify the Article.php file? Which file actually contains the features that subpages have?
a bit lost... thanks
Rob Church robchur@gmail.com wrote: On 23/07/07, Linus Chu wrote:
How do I disable it so that subpage titles do not include the entire hierarchy in its name?
You alter the code. Remember, subpages in MediaWiki have little recognition or importance beyond a few very small features.
Of course, if you truncate the page title, then users aren't going to be able to work out how to link to the page...
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel.
mediawiki-l@lists.wikimedia.org