[pmwiki-users] (:template none:) ?
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Mon Mar 31 10:47:36 CDT 2008
I would have exactly same question as below...
I tried:
(:template first:)
(:if equal {>$Group} :)
empty pagelist result
(:if:)
as suggested by PM in a older post but this doesn't seem to work.
Pierre
>I'm currently trying to write a pagelist format that can handle 0, 1 or
>several hits being returned, but I'm having trouble with the case of no
>matches. I would like to display a message in that case, but it looks
like the
>entire contents of the format is ignored if there are no matches.
>
>Ideally I'd like something like a (:template none:) that only gets
output when
>the list is empty. That way one could do this:
>
> [[#listfmt]]
> (:template first:)
> ||'''Name''' ||'''Rank''' ||
> (:template each:)
> ||{=$:Name} ||{=$:Rank} ||
> (:template last:)
> There were {$$PageCount} matching records.
> (:template none:)
> No records matched your query.
> [[#listfmtend]]
More information about the pmwiki-users
mailing list