[pmwiki-users] ISO 8859-1 conversion patterns for page names
Roman
romat2 at gmail.com
Tue Nov 20 08:51:02 CST 2007
On Nov 20, 2007 2:57 PM, Roman <romat2 at gmail.com> wrote:
> 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.
Better rule is this:
SDV($MakePageNamePatterns, array(
"/'/" => '',
"/[^$PageNameChars]+/" => '-',
'/((^|[^-\\w])\\w)/e' => "strtoupper('$1')"
));
because PmWiki currently does not support page names beginning with
lowercase character in all functions.
More information about the pmwiki-users
mailing list