[pmwiki-users] ISO 8859-1 conversion patterns for page names
Roman
romat2 at gmail.com
Tue Nov 20 07:57:09 CST 2007
Thank you Hans. I slightly modified the recipe this way
SDV($MakePageNamePatterns, array(
"/'/" => '',
"/[^$PageNameChars]+/" => ' ',
"/\\s+/" => '-'
));
so page names don't use CamelCase and spaces are converted to hyphens
which is more SEO friendly.
This is what I have been looking for a long time. Again, thank you and
I agree with malexism that this should be part of PmWiki core.
Roman
On Nov 20, 2007 1:15 PM, Hans <design5 at softflow.co.uk> wrote:
> Tuesday, November 20, 2007, 10:38:08 AM, Hans wrote:
>
> > I just copied the code of $MakePageNamePatterns to config.php,
> > and got the following errors reported repeatedly:
>
> I needed to define $PageNameChars also first.
>
> I have added a cookbook page now. Please revise.
>
> http://www.pmwiki.org/wiki/Cookbook/ISO8859PageNameConversionPatterns
>
> I thought patterns for other standards could be added there too.
>
>
>
> ~Hans
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list