On 9 Nov 2007, at 14:19, Sean Cribbs wrote:

> Andrew,
>
> They shouldn't be hard to implement.  Have a look at the  
> definitions for
> <r:parent> and <r:if_parent> in standard_tags.rb.

I thought so too.

I can easily roll this out as an extension, but I wonder whether it  
should really go into the core? I'll have a go at creating the tags  
and tests myself. When done, I'll also update the howto page.

As for the naming of these tags, what sounds most idiomatic:

<r:if_children> and <r:unless_children>
<r:has_children> and <r:has_no_children>
<r:is_parent> and <r:is_childless>

I'm favouring the first.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to