[pmwiki-users] (:template none:) ?
Stirling Westrup
sti at pooq.com
Wed Nov 7 02:14:58 CST 2007
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