[Mediawiki-l] Is possible to change #firstHeading to show only the last part of the subpage's name?

Juliano F. Ravasi ml at juliano.info
Wed Apr 11 14:21:20 UTC 2007


Javier Valcarce García wrote:
> For example:
> I have a subpage named "foo/etc/bar" and I want to show in
> #firstHeading div container only "bar". Is this possible?

This small patch may help you:
http://juliano.info/ext/mediawiki-jr/mediawiki-short-page-titles.patch

You probably will have to hand-patch it. After installed, add the
namespace where you want this effect to both $wgNamespacesWithSubpages,
$wgNamespacesToOmitParents.

-- 
Juliano F. Ravasi ·· http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96

"A candle loses nothing by lighting another candle."
    -- Erin Majors

* NOTE: To contact me directly, replace "ml" with
"contact" on my e-mail address.

* AVISO: Para me contatar diretamente, troque "ml"
por "contact" no endereço de e-mail.




More information about the MediaWiki-l mailing list