You may also be able to do [(info count...)] Cheers Dan
2009/4/7 Linly <[email protected]>: > > Aha, I found the answer. Use the "{+count_matches}" in template can do > the trick. > > Stop: [(info report if="equal {info.todo::{+p}} ezStop" > target='info.todo' template='count')] 種 > /* > [[#count]] > [(template first)]{+count_matches} > [[#end]] > */ > > Cheers, linly > > On 4月7日, 下午3時02分, Linly <[email protected]> wrote: >> This info report code can list the pages with the value: >> >> [(info report if="equal {info.todo::{+p}} 'ezTodo'" target='info.todo' >> fmr=title)] >> >> But this info count can't return the right number: >> >> [(info count if="equal {info.todo::{+p}} 'ezTodo'" >> target='info.todo')] >> >> Cheers, linly >> >> On 4月7日, 下午2時34分, Linly <[email protected]> wrote: >> >> > Currently the info function can count the total number of the datas >> > inside one info page. The code like this: >> >> > How many things: [(info count target='info.todo')] >> >> > can return the number of how many things left. >> >> > If I have different value in that info page, is it possible to count >> > the number of the individual value? Say, >> >> > [(info count target='info.todo' value='todo')] things todo. >> > [(info count target='info.todo' value='done')] things done. >> > [(info count target='info.todo' value='stop')] things suspended. >> >> > Cheers, linly > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
