[pmwiki-users] need help building a markup expression for pagenames
Dominique Faure
dominique.faure at gmail.com
Tue Aug 28 09:44:10 CDT 2007
On 8/28/07, noskule <noskule at gmx.net> wrote:
> hi list pm
> I try to build a markup expression for building a pagename means
>
> * remove spaces
> * capitalize the first letter after the space
> * do other things pmwiki may do if its building a pagename (so it would
> work with AlternateNamingScheme)
>
> example:
> "This is the page 4" -> ThisIsThePage4*
>
> *note that the function should not add a groupname
>
>
> At the moment I have a remove space expressen that I want to modifie:
>
> $MarkupExpr['removespace'] = 'RemoveSpace($args[0])';
>
> function RemoveSpace($in) {
> $out = str_replace(" ","" ,$in);
> return $out;
> }
>
> Is there a pmwiki function what does that, so i could call it from my
> config.php
> thanks for any help
> nos
>
The {(pagename "This is the page 4")} should already provide the
feature (2.2.0beta63)
--
Dominique
More information about the pmwiki-users
mailing list