[pmwiki-users] No wikiword style links at all

J. Meijer commentgg at hotmail.com
Sat Aug 19 16:13:10 CDT 2006

On 8/19/06, Pico <pmwiki at ben-amotz.com> wrote:J. Meijer wrote:> Dear developers,>>
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 & lowercase. This would also have overall performance
advantages.>> Is there any way/chance this can be done? May there be a recipe I have missed?Take a look at John Rankin's MarkupExtensions, which includes anextension to "tidy wikiword spacing and display wikiwords likeTheReturnOfTheKing as The Return of the King"PicoThanks. In the mean time I did find a 'recipe': Cookbook:AlternateNamingScheme. It seems that by adding this to config.php (thereby changing the default) would work: $MakePageNamePatterns = array(    "/'/" => '',                           # strip single-quotes    "/[^$PageNameChars]+/" => ' ',         # convert non-alnums to spaces    "/\\s+/" => '_'                               # convert spaces to underscore);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. 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. As a matter of interest in the design, why do spaces and single quotes need conversion? They aren't allowed on the Uri? jm
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060819/d9dfaab3/attachment.html 

More information about the pmwiki-users mailing list