<html><head><title>Re: [pmwiki-users] Make "M. Name" work for profil link</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Hello ABClf,<br>
<br>
Thursday, March 31, 2016, 4:04:57 PM, you wrote:<br>
<br>
<span style=" color: #800000;"><b>> What I'm willing to do, is to use any value in a form and format in a<br>
> such a way I get something usable for a profil link.<br>
> If the given value is G.M. Christopher, I would like [[Profile/G.M.<br>
> Christopher]] link to Profil/GMChristopher.<br>
<br>
</b><span style=" color: #000000;">you could use the markup expression 'wikiword' by including the cookbook recipe<br>
</span></span></span><a style=" font-family:'Courier New'; font-size: 9pt;" href="http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus">http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus</a> <br>
<span style=" font-family:'Courier New'; font-size: 9pt;">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 <br>
<br>
to post a link via a Fox form using an input field named 'author' <br>
you could use this in the Fox template the form uses:<br>
<br>
[[Profiles/{$$(wikiword '{$$author}')}]] <br>
<br>
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.<br>
<br>
<br>
Best regards,<br>
 Hans                         <br>
</span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:design1@softflow.uk"></a></body></html>