[pmwiki-users] Problem with {$BaseName} variable

StefCT stefct4 at gmail.com
Mon Dec 23 06:08:25 CST 2013


On 12/22/2013 11:54 PM, Petko Yotov wrote:
> StefCT writes:
>> Apparently {$BaseName} works properly (by stripping the "-Users" part)
>> only within the Cookbook page group.
> 
> {=$BaseName} should now work in the Profiles/ group.

Great, thank you! Now my markup does exactly what I wanted it to do.
> 
> Alternatively, it is possible to use the markup expression
> 
>  {(substr {=$FullName} 0 -5)}
> 
> See http://www.pmwiki.org/wiki/PmWiki/MarkupExpressions .

This sounds like a good option to me too. It wouldn't be ambiguous
either because in my page list I'm explicitly searching for pages with
the suffix -Users (name=*-Users).

Happy Holidays!

--StefCT





More information about the pmwiki-users mailing list