MediaWiki: how to make DISPLAYTITLE be used in categories listings
Posted
by
Konstantin Boyandin
on Pro Webmasters
See other posts from Pro Webmasters
or by Konstantin Boyandin
Published on 2012-12-11T08:26:19Z
Indexed on
2012/12/11
17:24 UTC
Read the original article
Hit count: 297
mediawiki
The problem: a MediaWiki-driven site uses subpages to build pages hierarchy. When I add something like
Page1/Page2/Subpage
the exactly above string appears in listings and looks clumsy. I can't efficiently use short subpage title (Subpage in this example), since it can appear in different contexts and could confuse users.
I can use DISPLAYTITLE magic word, with proper values of $wgRestrictDisplayTitle and $wgAllowDisplayTitle, to reassign page title and make it show on the page.
However, when I look into categories listing this page, I will still see "Page1/Page2/Subpage" instead of the title assigned.
Is there a simple way (through 'hack' or via relevant extension) to make the new title appear in every listing as well?
© Pro Webmasters or respective owner