[pmwiki-users] How to distinguish between a wildcard and a reference in "exists"

Randy Brown alongkiss at aprivatespot.com
Sat May 22 16:25:30 CDT 2010


PmWiki version 2.2.16 changed the markup to allow conditional "exists" to use wildcards. But now how do I reference the underlying page, as opposed to specifying a wildcard?

For example, put the following markup in WikiSandbox and also in any page that does not yet exist (using preview to see the result). The results used to be "Main.WikiSandbox exists" and "Main.UnsavedPage doesn't exist", but now both return "doesn't exist".

(:markup:)
(:if !exists "{*$FullName}":)
{*$FullName} doesn't exist
(:else:)
{*$FullName} exists
(:ifend:)
(:markupend:)

-- Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100522/fe0aa24e/attachment.html>


More information about the pmwiki-users mailing list