Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Chaim Kirby
Bump I would really like to use a page part or a snippet to define the list of urls in the aggregate tag, ie: r:aggregate urls='r:find url=/rootr:content part=news_urls//r:find' {Show aggregated data} /r:aggregate or r:aggregate urls='r:snippet name=root-news-urls' {Show aggregated data}

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Mohit Sindhwani
Hi Chaim I'm not sure what you want to do :( If I understand correctly, there are 2 issues: 1. You want to gather news from different places. This is something aggregate can do. But what you seem to want is to have a place where you can define all the URLs that need to be aggregated.

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Chaim Kirby
Mostly correct, yes. For now you can ignore your #2, if I can figure out #1 I should be good to go. For #1, Ideally I would like to have a snippet that handles putting the urls together. I know where in my hierarchy news pages will be, but I wont necessarily know when someone has added a new

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Mohit Sindhwani
Chaim Kirby wrote: Mostly correct, yes. For now you can ignore your #2, if I can figure out #1 I should be good to go. For #1, Ideally I would like to have a snippet that handles putting the urls together. I know where in my hierarchy news pages will be, but I wont necessarily know when someone

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Mohit Sindhwani
Mohit Sindhwani wrote: tag aggregate_snippet do |tag| raise `snippet_name' attribute required unless tag.attr[snippet_name] if name = tag.attr['snippet_name'] if snippet = Snippet.find_by_name(name.strip) #snippet was found.. urls =

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Chaim Kirby
Ill try something like that. I figured I was going to have to go into the tag code and get it to evaluate any radiant tags in the urls list before parsing the urls, so it looks like that is what I will be doing. Thanks for the help! Chaim Mohit Sindhwani wrote: Chaim Kirby wrote: Mostly

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Mohit Sindhwani
Mohit Sindhwani wrote: Mohit Sindhwani wrote: tag aggregate_snippet do |tag| raise `snippet_name' attribute required unless tag.attr[snippet_name] if name = tag.attr['snippet_name'] if snippet = Snippet.find_by_name(name.strip) #snippet was found.. urls =

Re: [Radiant] Dynamic urls for aggregate

2009-05-26 Thread Mohit Sindhwani
Chaim Kirby wrote: Ill try something like that. I figured I was going to have to go into the tag code and get it to evaluate any radiant tags in the urls list before parsing the urls, so it looks like that is what I will be doing. Christian Vetter posted this once: You can put radius tags