[pmwiki-users] Make "M. Name" work for profil link

ABClf languefrancaise at gmail.com
Thu Mar 31 18:39:29 CDT 2016


Perfect ; thank you for your help (and for mentioning the use of double $$).
Gilles.

2016-03-31 17:42 GMT+02:00 Hans <design1 at softflow.uk>:
> Hello ABClf,
>
> Thursday, March 31, 2016, 4:04:57 PM, you wrote:
>
>> What I'm willing to do, is to use any value in a form and format in a
>> such a way I get something usable for a profil link.
>> If the given value is G.M. Christopher, I would like [[Profile/G.M.
>> Christopher]] link to Profil/GMChristopher.
>
> you could use the markup expression 'wikiword' by including the cookbook
> recipe
> http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus
> The wikiword expression will 'sanitise' a text, dots will be stripped, words
> will start with capitals, spaces will be stripped. G.M. Christopher or
> g.m.christopher will become GMChristopher
>
> to post a link via a Fox form using an input field named 'author'
> you could use this in the Fox template the form uses:
>
> [[Profiles/{$$(wikiword '{$$author}')}]]
>
> Note the use of two $$ in the markup expression, which means Fox will
> evaluate the expression when it is posted, not when the page is loaded.
>
>
> Best regards,
> Hans



More information about the pmwiki-users mailing list