Benito,
Try putting the paths inside the aggregate like this:
r:aggregate paths=...r:each...
I'd like to rework the way tags share information, but for now that
should do it.
On Sat, Jan 12, 2013 at 2:31 PM, Benito Torres radi...@mv.so36.net wrote:
Hi,
in radiant-1.1.1 (radius-0.7.3) this snippet:
r:aggregate:each paths=/
lir:link //li
/r:aggregate:each
results in a TagError (trace below):
`aggregate' tag must contain a `paths' or `urls' attribute.
I've been trying to debug this but got stuck somewhere in radius. I only
can say that the snippet string is loaded from the database and fed to
radius correctly and the error message comes from the
aggregate-tag-block in app/models/standard_tag. What happens in between
and where the paths-attribute is lost I unfortunately fail to understand.
Could someone help me, please?
I'm running radiant-1.1.1 on ruby 1.8.7-p370 (via rbenv on Archlinux),
set up as 'styled blog' with no extra extensions installed.
Currently I'm helping myself with multiple find-tags, but that's ugly.
If someone has another suggestions how to iterate over a manually
selected set of pages I'd be very interested, too!
Best wishes,
Benito
The trace:
StandardTags::TagError (`aggregate' tag must contain a `paths' or `urls'
attribute.):
radiant (1.1.1) app/models/standard_tags.rb:1291:in `required_attr'
radiant (1.1.1) app/models/standard_tags.rb:345:in `tag:aggregate'
radiant (1.1.1) lib/radiant/taggable.rb:39:in `call'
radiant (1.1.1) lib/radiant/taggable.rb:39:in `render_tag'
radiant (1.1.1) app/models/page_context.rb:10:in `initialize'
radius (0.7.3) lib/radius/context.rb:62:in `call'
radius (0.7.3) lib/radius/context.rb:62:in `render_tag'
radius (0.7.3) lib/radius/context.rb:101:in `stack'
radius (0.7.3) lib/radius/context.rb:61:in `render_tag'
radiant (1.1.1) app/models/page_context.rb:25:in `render_tag'
radius (0.7.3) lib/radius/context.rb:57:in `render_tag'
radiant (1.1.1) app/models/page_context.rb:25:in `render_tag'
radius (0.7.3) lib/radius/parser.rb:58:in `stack_up'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `call'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `to_s'
radius (0.7.3) lib/radius/utility.rb:32:in `array_to_s'
radius (0.7.3) lib/radius/parser.rb:31:in `parse'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `call'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `to_s'
radius (0.7.3) lib/radius/parser.rb:34:in `parse'
radiant (1.1.1) app/models/page.rb:367:in `parse'
radiant (1.1.1) app/models/page.rb:372:in `parse_object'
radiant (1.1.1) app/models/page.rb:175:in `render_snippet'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/gems/1.8/gems/radiant-snippets-extension-1.1.0/app/models/snippet_tags.rb:28:in
`tag:snippet'
radiant (1.1.1) lib/radiant/taggable.rb:39:in `call'
radiant (1.1.1) lib/radiant/taggable.rb:39:in `render_tag'
radiant (1.1.1) app/models/page_context.rb:10:in `initialize'
radius (0.7.3) lib/radius/context.rb:62:in `call'
radius (0.7.3) lib/radius/context.rb:62:in `render_tag'
radius (0.7.3) lib/radius/context.rb:101:in `stack'
radius (0.7.3) lib/radius/context.rb:61:in `render_tag'
radiant (1.1.1) app/models/page_context.rb:25:in `render_tag'
radius (0.7.3) lib/radius/parser.rb:53:in `stack_up'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `call'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `to_s'
radius (0.7.3) lib/radius/utility.rb:32:in `array_to_s'
radius (0.7.3) lib/radius/parser.rb:31:in `parse'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `call'
radius (0.7.3) lib/radius/parse_tag.rb:12:in `to_s'
radius (0.7.3) lib/radius/parser.rb:34:in `parse'
radiant (1.1.1) app/models/page.rb:367:in `parse'
radiant (1.1.1) app/models/page.rb:372:in `parse_object'
radiant (1.1.1) app/models/page.rb:159:in `render'
radiant (1.1.1) app/models/page.rb:128:in `process'
radiant (1.1.1) app/controllers/site_controller.rb:86:in `process_page'
radiant (1.1.1) app/controllers/site_controller.rb:23:in `show_page'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/gems/1.8/gems/compass-rails-1.0.3/lib/compass-rails/railties/2_3.rb:9:in
`process'
sass (3.2.5) lib/sass/./sass/plugin/rack.rb:54:in `call'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in
`start'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/server.rb:95:in
`start'
/home/user/.rbenv/versions/1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in
`each'