[pmwiki-devel] Testing existence of pages

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


On 24/10/2022 21:09, Petko Yotov wrote:
> You can use:
> 
>   $at_least_one_exists = CondExists("*.MyPage,Group.Otherpage");

This tells you that at least one page matches your pattern, but not 
which page exactly.

To get the names of these pages, use this instead:

   $list = ListPages("*.MyPage,Group.Otherpage");

Petko

> 
> 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