[pmwiki-users] Have pagelist condition : if result not null, then print pagelist
Petko Yotov
5ko at 5ko.fr
Wed Apr 14 02:32:57 PDT 2021
Pagelist usually shows nothing if there are no pages in the list.
Unless you have a (:template none:) section -- it only appears when
there are no pages.
If you want to show something, like a heading, before the first result
(when there is a first result), then use (:template first:). That
section can be there in addition to (:template first {=$Group}:)
I suspect I don't understand what is the exact problem, if so, please
elaborate.
Petko
On 13/04/2021 05:21, ABClf wrote:
> I don't know if it's possible to have a pagelist condition like : if
> $MatchCount < 1 ;
> in my case, I would like a pagelist to be printed only when there is
> some positive result found.
> If request gives nothing, then print nothing.
>
> Specifically, I use pagelist like this to collect linked citations :
> (:pagelist group=Citation link=Bob.{*$Name} list=all fmt=#citation2:)
> and I would like to have result printed out only when results are
> found.
> Is that doable ?
More information about the pmwiki-users
mailing list