Re: splitting wikiwords in page headings

Marc-Etienne Vargenau <[email protected]> Mon, 12 Mar 2012 16:49:42 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Le 11/03/2012 21:49, Philip J. Hollenback a =E9crit :
> I'm using basically the stock phpwiki-1.4.0 sidebar theme on my website
> www.hollenback.net.  I'd like the wikiword title to be expanded into
> regular words.  So if you look at
>
> http://www.hollenback.net/FakingItAsAWindowsAdmin
>
> I'd like the largest title to read 'Faking It As A Windows Admin', not
> 'FakingItAsAWindowsAdmin'.
>
> I think I can do this by calling SplitPageName from stdlib.php in the
> appropriate place in my theme template.  I messed around with this a
> bit, but I found it broke the backlinks functionality on the page name
> and generated errors in my phpwiki.
>
> Can someone suggest the simplest way to do this?

Hello Philip,

In file themes/<YourTheme>/themeinfo.php
do a:
$this->setAutosplitWikiWords(true);

This will do what you want in the title, but also in the whole
wiki page.

Best regards,

Marc-Etienne

-- =

Marc-Etienne Vargenau
Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE
+33 (0)1 30 77 28 33, [email protected]

---------------------------------------------------------------------------=
---
Try before you buy =3D See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2