[pmwiki-users] pagelist with RecentChanges trail : how to get rid of deleted pages which are listed ?

Petko Yotov 5ko at 5ko.fr
Sun Oct 24 01:54:50 PDT 2021

The most efficient should be this:

   (:pagelist group=Main trail=Main.RecentChanges if="exists 

group=Main is recommended if your pages are all from the same group.

I just found out that the "exists" conditional can be optimized a lot, 
especially when called multiple times from a pagelist. This will be 
released in the next version in a few days.

One other note, the "exists" conditional is case insensitive, like the 
"name" and "group" conditionals, but unlike "match". This means if we 
test for deleted pages "Wikisandbox" and "WikiSandBox", but there is the 
correct page "WikiSandbox", it will return true:


I wouldn't want to change the current state and risk breaking existing 
wikis relying on the case insensitivity, but in your situation this can 
be clearly wrong.

I'll have to think about what to do. Possibly adding a new conditional 
for "case-sensitive exists" or a way to configure the current one to be 
case sensitive. Let's think about it.


If you upgrade :  http://www.pmwiki.org/Upgrades

On 22/10/2021 16:04, ABClf wrote:
> I have a pagelist using a RecentChanges as trail source ;
> page which have been deleted does appear in the RecentChanges trail (I
> believe it's the normal behaviour) ; thus they also get listed in
> pagelist result.
> I don't know how to get rid of the deleted pages ; I believe I have
> use the (:if exists:) param or set up a special list= parameter.
> How would you do ?
> Thank you,
> Gilles.

More information about the pmwiki-users mailing list