Re: [pmwiki-users] How to to use a page count in a conditional

2009-03-28 Thread Randy Brown
Peter, thanks for your excellent suggestions. The earlypagelist markup works. For the record, I tried the powertools approach, but my pagelist markup is actually something like this: (:pagelist group=MyGroup1 $:MyVariableA={MyGroup2.{*$Name} $:MyVariableB} MyGroup3.MyVariableC fmt=#myfmt:)

Re: [pmwiki-users] How to to use a page count in a conditional

2009-03-28 Thread Patrick R. Michaud
On Sat, Mar 28, 2009 at 11:41:58AM +, Hans wrote: > Saturday, March 28, 2009, 10:33:12 AM, Peter Bowers wrote: > > > Probably the best alternative is Hans's new fpltemplate recipe (the status > > is still experimental, but it's been pretty solid in my testing). It gives > > a (:template none:

Re: [pmwiki-users] How to to use a page count in a conditional

2009-03-28 Thread Hans
Saturday, March 28, 2009, 10:33:12 AM, Peter Bowers wrote: > Probably the best alternative is Hans's new fpltemplate recipe (the status > is still experimental, but it's been pretty solid in my testing). It gives > a (:template none:) option you can put in your pagelist formatting template > as

Re: [pmwiki-users] How to to use a page count in a conditional

2009-03-28 Thread Peter Bowers
The "if" rule occurs fairly early on, during "fulltext" processing. The "pagelist" rule fires much later, during "directive" processing. Thus the pagelist results are not available at the time the conditional is evaluating them. One possibility would be to create another pagelist markup which fi

[pmwiki-users] How to to use a page count in a conditional

2009-03-27 Thread Randy Brown
I'd like to test whether a pagelist will yield results. If I use this markup: "(:pagelist group=null fmt=count:)" (:if equal "(:pagelist group=null fmt=count:)" "0":) This pagelist has zero results. (:ifend;) only "0" displays, not "This pagelist has zero results." Is there a way to use a pag