[pmwiki-users] PageTextVariables and Spaces

Dominique Faure dominique.faure at gmail.com
Tue Oct 30 09:07:13 CDT 2007


On 10/30/07, Hans <design5 at softflow.co.uk> wrote:
> Tuesday, October 30, 2007, 1:29:57 PM, Dominique wrote:
>
> > With:
>
> > $MarkupExpr['wikiword'] =
> > 'preg_replace(array_keys($GLOBALS["MakePageNamePatterns"]),'
> >                            .
> > 'array_values($GLOBALS["MakePageNamePatterns"]),'
> >                            . 'preg_replace($rpat, $rrep, $params))',
>
> > A spaced string would be transformed into a Compliant pagename.
>
> Thank you! That would be the more compliant solution, as the link
> appearing to point to an author's Profile is using
> MakePageNamePatterns as well. And not only spaces will  be removed,
> but also other characters not compliant with page names.
>
> Is there a lot of overhead involved processing these markup
> expressions on a forum page you think? There will be around 4 markup
> expressions per post to evaluate, so it could go easily into the
> hundreds.
>
>

Can't you apply a kind of replace-on-save policy there?

-- 
Dominique



More information about the pmwiki-users mailing list