Re: [Radiant] Counting Articles

2009-02-04 Thread Andrew Neil
On Wed, Feb 4, 2009 at 5:07 AM, Sean Cribbs seancri...@gmail.com wrote: r:children:count / should use the default find options for page children, which is to exclude virtual pages. Just to be sure, add virtual=false and see if you get a different result. Are you sure? Looking at the code

Re: [Radiant] Counting Articles

2009-02-04 Thread Steven Southard
My version 7rc2 doesn't seem to have this option either. Adding virtual=false has no effect. Replacing children with Drew's tag 'children' do |tag| tag.locals.filter_attributes = tag.attr tag.locals.options = children_find_options(tag) tag.locals.children =

Re: [Radiant] Counting Articles

2009-02-04 Thread Andrew Neil
Steven, Replacing children with Drew's tag 'children' do |tag| tag.locals.filter_attributes = tag.attr tag.locals.options = children_find_options(tag) tag.locals.children = tag.locals.page.children tag.locals.children_filtered = tag.locals.page.children.find(:all,

Re: [Radiant] Counting Articles

2009-02-04 Thread Steven Southard
Okay that works great. It totally cut out the archive month index and the draft articles. Thanks for the extra instructions they were helpful. On Feb 4, 2009, at 5:30 PM, Andrew Neil wrote: Steven, Replacing children with Drew's tag 'children' do |tag| tag.locals.filter_attributes =

Re: [Radiant] Counting Articles

2009-02-04 Thread Steven Southard
Actually replacing the whole file worked great for the counting but not so good for the articles. I get undefined method `merge' for nil:NilClass on the month index page. On Feb 5, 2009, at 12:21 AM, Steven Southard wrote: Okay that works great. It totally cut out the archive month index

Re: [Radiant] Counting Articles

2009-02-03 Thread Steven Southard
It seems like that should work but it doesn't. First, best I can tell, the archive month index doesn't have a url. Second even if I try to exclude another article's url it doesn't change the count. On Feb 3, 2009, at 4:34 PM, john muhl wrote: might try excluding it by url r:find

Re: [Radiant] Counting Articles

2009-02-03 Thread john muhl
might try excluding it by url r:find url=/articlesr:unless_url matches=/articles/archive r:children:count / /r:unless_url /r:find On Tue, Feb 3, 2009 at 3:03 PM, Steven Southard ste...@stevensouthard.comwrote: I was using r:find url=/articlesr:children:count //r:find to keep track of the

[Radiant] Counting Articles

2009-02-03 Thread Steven Southard
I was using r:find url=/articlesr:children:count //r:find to keep track of the number of articles published. Now I've added an archive month index so my count is off by one. How do I subtract one or exclude the month index? Steven ___ Radiant

Re: [Radiant] Counting Articles

2009-02-03 Thread Sean Cribbs
r:children:count / should use the default find options for page children, which is to exclude virtual pages. Just to be sure, add virtual=false and see if you get a different result. Sean Steven Southard wrote: It seems like that should work but it doesn't. First, best I can tell, the