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

Petko Yotov 5ko at 5ko.fr
Sun Dec 22 16:54:39 CST 2013

StefCT writes:
> Apparently {$BaseName} works properly (by stripping the "-Users" part)
> only within the Cookbook page group.

Yes, this is a local customization on pmwiki.org, and was only enabled in  
the Cookbook and Skins groups. I now enabled it on the whole site.

> Any ideas how to fix this?

{=$BaseName} should now work in the Profiles/ group.

Alternatively, it is possible to use the markup expression

  {(substr {=$FullName} 0 -5)}

See http://www.pmwiki.org/wiki/PmWiki/MarkupExpressions .

We have this in PmWiki.GroupFooter which is part of the default distribution  
(where $BaseName is not defined).


More information about the pmwiki-users mailing list