I have a page (e.g. named Scans.Foo) that contains a PTV with a page
variable inside it:

:Filename:{$Name}.jpg

If I call

PageTextVar('Scans.Foo', 'Filename')

...I get:

"{Scans.Foo$Name}.jpg"

...when I want:

"Foo.jpg"

I can't pass the string through FmtPageName because that doesn't
handle this sort of string. Right now my workaround is:

$filename = strip_tags(MarkupToHTML($pagename, PageTextVar($pagename,
'Filename')));

This seems hacky, is there a better way?

Maxim

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to