Re: [Radiant] Tags to iterate over a list

2014-01-08 Thread Errol Siegel
I thought I posted a reply to this a long time ago, but I don't see it here 
anywhere.

Anyhow, thanks for your reply to my question. I suspected that there was 
not a set of tags for what I was trying to do. I wrote my own simple tag 
extension to take care of it.

Thanks again.

On Wednesday, December 4, 2013 11:47:12 AM UTC-6, Jim Gay wrote:
>
> On Wed, Dec 4, 2013 at 12:36 PM, Errol Siegel 
> > 
> wrote: 
> > Say, for example, that I want to output a list like this: 
> > 
> >  
> > Something - More text -  > class="other-class">even more text 
> > Something - More text -  > class="other-class">even more text 
> > Something - More text -  > class="other-class">even more text 
> >  
> > 
> > Are there any built-in tags (or known extensions) for iterating over a 
> list 
> > like that? It would be nice to avoid duplicating all those tags for a 
> long 
> > list. 
> > 
> > I know I can just write my own tags to do this, but before I do so I 
> wanted 
> > to see if this feature already exists. 
> > 
> > Thanks! 
> > 
>
> Errol, 
> It's not clear to me which parts you expect to be different. 
> We have iterators like children:each but there's nothing that takes an 
> arbitrary set of data for iteration. 
>
> Are you looking for something like this? 
>  
>   … 
> This doesn't exist. But it's hard for me to understand what you want 
> the radius code to look like. Can you give an example of that? 
>
> -Jim 
>
>
> -- 
> Write intention revealing code #=> http://www.clean-ruby.com 
>
> Jim Gay 
> Saturn Flyer LLC 
> 571-403-0338 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Radiant CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to radiantcms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Radiant] Tags to iterate over a list

2013-12-04 Thread Jim Gay
On Wed, Dec 4, 2013 at 12:36 PM, Errol Siegel  wrote:
> Say, for example, that I want to output a list like this:
>
> 
> Something - More text -  class="other-class">even more text
> Something - More text -  class="other-class">even more text
> Something - More text -  class="other-class">even more text
> 
>
> Are there any built-in tags (or known extensions) for iterating over a list
> like that? It would be nice to avoid duplicating all those tags for a long
> list.
>
> I know I can just write my own tags to do this, but before I do so I wanted
> to see if this feature already exists.
>
> Thanks!
>

Errol,
It's not clear to me which parts you expect to be different.
We have iterators like children:each but there's nothing that takes an
arbitrary set of data for iteration.

Are you looking for something like this?

  …
This doesn't exist. But it's hard for me to understand what you want
the radius code to look like. Can you give an example of that?

-Jim


-- 
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Radiant CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to radiantcms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Radiant] Tags to iterate over a list

2013-12-04 Thread Errol Siegel
Say, for example, that I want to output a list like this:


Something - More text - even more text
Something - More text - even more text
Something - More text - even more text


Are there any built-in tags (or known extensions) for iterating over a list 
like that? It would be nice to avoid duplicating all those tags for a long 
list.

I know I can just write my own tags to do this, but before I do so I wanted 
to see if this feature already exists.

Thanks!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Radiant CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to radiantcms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.