[pmwiki-users] Am I stupid? PageVar function
Karl Loncarek
dh2mll at web.de
Tue Jan 3 07:53:35 CST 2006
Hi,
I'm using the way commenting as described in Cookbook/CommentPageLink
Now I have problems with the backlinks:
In the cookbook entry the following was suggested:
Markup('{$BaseName}', '>{$fmt}',
'/{\\$BaseName}/',
preg_replace('/-/', '.', FmtPageName('$Name', $pagename), 1));
This does not work in 2.1beta17
As I saw in 2.1beta15 the FmtPageName function was changed and PageVar
introduced, so I changed the above to
Markup('{$BaseName}', '>{$fmt}',
'/{\\$BaseName}/',
preg_replace('/-/', '.', PageVar($pagename,'$Name'), 1));
which should give the same result. But
FmtPageName('$Name', $pagename)
and
PageVar($pagename,'$Name')
give back an empty string.
Any hints what I'm doing wrong?
--
Bye
Karl (aka Klonk)
More information about the pmwiki-users
mailing list