On 22/05/06, Luis Mandel <luismandel(a)gmail.com> wrote:
Hi again Rob!
I've followed your advice for having "known links" for Categories.
Following your advice I did the this:
The latter is the easier option and involves a
quick patch to
OutputPage.php. Find the addCategoryLinks function, circa line 220 and
look for the line
$this->mCategoryLinks[] = $sk->makeLinkObj( $title, $text );
Replace this with
$this->mCategoryLinks[] = $sk->makeKnownLinkObj( $title, $text );
This works for the footer of each page but not for links of the form:
[[Category:myCategory]]
Links of the form [[Category:Mine]] never show up, as they're
considered to be categorisation tokens. I think you mean links of the
form [[:Category:Mine]]. These can be forced to always-work too,
again, risking breaking the semantics of the software...
includes/Title.php
Within the function isAlwaysKnown, on or around line 2182:
- || NS_SPECIAL == $this->mNamespace;
+ || NS_SPECIAL == $this->mNamespace || NS_CATEGORY == $this->mNamespace;
Rob Church