<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><br><br><div><span class="gmail_quote">On 8/19/06, <b class="gmail_sendername">Pico</b> &lt;pmwiki@ben-amotz.com&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">J. Meijer wrote:<br>&gt; Dear developers,<br>&gt;<br>&gt;
In an administration type application I have enabled titles on all
links, but that seems an excessive measure. Instead I could make due
with pretty page names: names that allow spaces in them and which don't
mangle upper &amp; lowercase. This would also have overall performance
advantages.<br>&gt;<br>&gt; Is there any way/chance this can be done? May there be a recipe I have missed?<br><br>Take a look at John Rankin's MarkupExtensions, which includes an<br>extension to "tidy wikiword spacing and display wikiwords like<br>TheReturnOfTheKing as The Return of the King"<br><br>Pico<br></blockquote></div><br><br>Thanks. In the mean time I did find a 'recipe': <a href="http://www.pmwiki.org/wiki/Cookbook/AlternateNamingScheme">Cookbook:AlternateNamingScheme</a>. It seems that by adding this to config.php (thereby changing the default) would work: <br><br>$MakePageNamePatterns = array(<br>&nbsp;&nbsp;&nbsp; "/'/" =&gt; '',&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # strip single-quotes<br>&nbsp;&nbsp;&nbsp; "/[^$PageNameChars]+/" =&gt; ' ',&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # convert non-alnums to spaces<br>&nbsp;&nbsp;&nbsp; "/\\s+/" =&gt; '_'&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # convert spaces to underscore<br>);<br><br>This however ties in with previous experience: in previously tested versions disabling wikiwords didn't eradicate the wikiword linking system completely. This particular topic is probably about one of the remnants remaining. <br><br>I wonder if this could be supported a little bit better in the core through a selection variable: use the wikiword way, or the 'cleanest channel' for pagenames (i.e. allowing most characters). This and several intermediate steps of WikiWord magic. <br><br>As a matter of interest in the design, why do spaces and single quotes need conversion? They aren't allowed on the Uri? <br><br>jm<br><br><br><br><br /><hr />Express yourself instantly with Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>