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

StefCT stefct4 at gmail.com
Sun Dec 22 16:17:49 CST 2013


Hi,

I've added a "Recipes I use:" section to my profile at
http://www.pmwiki.org/wiki/Profiles/StefCT, and being the lazy person
that I am, I use the following markup:

'''Recipes I use:''' \\
(:pagelist fmt=#stefusernotes list=normal group=Cookbook name=*-Users
link=Profiles.StefCT:)

[[#stefusernotes]]
[[({=$Group}/){=$Name}|{=$Title}]][[<<]]
[[#stefusernotes]]

My only problem is that the resulting pagelist looks like this:

Recipes I use:
EditTemplates-Users
MeetupAPIEventList-Users
OpenLayersAPI-Users
PHPScriptAsWikiMarkupSource-Users

... instead of the desired result:

Recipes I use:
EditTemplates
MeetupAPIEventList
OpenLayersAPI
PHPScriptAsWikiMarkupSource

Subsequently I tried using the {$BaseName} variable with the following
markup:

[[#stefusernotes]]
[[{=$BaseName}]][[<<]]
[[#stefusernotes]]

... but this is what I got:

Recipes I use:
Cookbook.EditTemplates-Users
Cookbook.MeetupAPIEventList-Users
Cookbook.OpenLayersAPI-Users
Cookbook.PHPScriptAsWikiMarkupSource-Users

Apparently {$BaseName} works properly (by stripping the "-Users" part)
only within the Cookbook page group. Or did I do something wrong?

Any ideas how to fix this?

--StefCT




More information about the pmwiki-users mailing list