[pmwiki-users] How can I check if a page exists

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 21 13:28:09 CST 2011


On Mon, Feb 21, 2011 at 02:47:28PM -0400, Carlos AB wrote:
> Hi list,
> 
> How can I check if a page exists inside a action handler? I need that
> because i don't want a action handler to run if a page doesn't exist,
> but using RetrieveAuthPage it seems that the action is not aborted
> when a page is not found.

Try PageExists($pagename) if you want to test for the existence of
a page.

Pm



More information about the pmwiki-users mailing list