Seeing you don't pass attributes, you could make that more concise;

<r:unless_children:comments:all />

Op maandag 5 mei 2014 04:05:29 UTC+2 schreef Dean Satchell:
>
> Hi Andrew, thanks for your advice, got me thinking about it. I've come up 
> with this:
>
> <r:unless_children><r:comments:all /></r:unless_children>
>
> This satisfies my requirements:
> 1.  I want to use the same layout for the parent and children pages for 
> user convenience (i.e. inherit layout when creating child page).
> 2. The parent page is not the root page.
> 3. I only want comments to show on the children pages
>
> Thanks again,
> Dean
>
> On Tuesday, April 15, 2014 3:36:28 AM UTC+12, Andrew vonderLuft wrote:
>>
>> Hi Dean, 
>>
>> If I understand you, this would involve using radius tags to put 
>> conditional logic in your layout, e.g.   <r:if_parent> <r:if_ancestor> 
>> etc.  I'm on #radiantcms IRC if you want to discuss.
>>
>> avonderluft
>>
>> On Tuesday, March 18, 2014 9:50:39 PM UTC-7, Dean Satchell wrote:
>>>
>>> Hi,
>>>
>>> I have a problem where I don't want the parent page to render some 
>>> radius tags from the layout selected in the page. This is because I want 
>>> its children pages to <inherit> that layout (i.e. default, so I don't have 
>>> to select the layout), but somehow not render all the tags from that layout 
>>> in the parent page. Any ideas?
>>>
>>

-- 

--- 
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/d/optout.

Reply via email to