[pmwiki-devel] Testing existence of pages

Petko Yotov 5ko at 5ko.fr
Mon Oct 24 12:09:24 PDT 2022


You can use:

   $at_least_one_exists = CondExists("*.MyPage,Group.Otherpage");

Note that this is case insensitive. To make it case sensitive, use:

   CondExists("*.MyPage,Group.OtherPage", false);

This should be called after any code that modifies $WikiDir or 
$WikiLibDirs. Some skins and recipes do.

Petko

-- 
If you upgrade :  https://www.pmwiki.org/Upgrades


On 24/10/2022 20:53, Simon wrote:
> If there a function that can be used in a recipe to test if
> * a pagename exists in any group
> * a fullname (group.page) exists?
> 
> ngā mihi
> 
> Simon
> 



More information about the pmwiki-devel mailing list