Topic on Project:Support desk

[RESOLVED] concatenate page id to page titles?

2
184.178.189.227 (talkcontribs)

This is for an intranet wiki so I can't link to it, but the version is 1.15.1. I realize we're a bit behind.

I would like to show the page id number (not the version number) as part of the title on each page. Plus some text, even... so instead of "Tour group guidelines" the heading one on each page would say "Policy 4234: Tour Group Guidelines".

I can't find an extension that does this easily, maybe my google-fu is failing, seems like there should be a quick edit I can do to a single title that outputs the page title?

184.178.189.227 (talkcontribs)

Never mind, issue resolved. I played with it enough to figure it out.

Ended up doing this in our skin... the modern.php file, found this bit: $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ;

And added this before it: print "[DIR.".sprintf('%04d',$this->data['articleid'])."] ";

Reply to "[RESOLVED] concatenate page id to page titles?"