[pmwiki-users] need help building a markup expression for pagenames

noskule noskule at gmx.net
Tue Aug 28 10:54:49 CDT 2007


Dominique Faure schrieb:
> On 8/28/07, noskule <noskule at gmx.net> wrote:
>> hi list pm
>> I try to build a markup expression for building a pagename means
>>
>> * remove spaces
>> * capitalize the first letter after the space
>> * do other things pmwiki may do if its building a pagename (so it would
>> work with AlternateNamingScheme)
>>
>> example:
>> "This is the page 4" -> ThisIsThePage4*
>>
>> *note that the function should not add a groupname
>>
>>
>> At the moment I have a remove space expressen that I want to modifie:
>>
>> $MarkupExpr['removespace'] = 'RemoveSpace($args[0])';
>>
>> function RemoveSpace($in) {
>>         $out = str_replace(" ","" ,$in);
>>         return  $out;
>>         }
>>
>> Is there a pmwiki function what does that, so i could call it from my
>> config.php
>> thanks for any help
>> nos
>>
> 
> The {(pagename "This is the page 4")} should already provide the
> feature (2.2.0beta63)

I checked this, but it gives "Group.Name" not only "name", means:
    "ThisIsThePage4" -> Group.ThisIsThePage4

I only need the pagename:
    ThisIsThePage4

> 




More information about the pmwiki-users mailing list