[Radiant] Avoid Stylesheet Children
Mohit Sindhwani
tech at onghu.com
Mon Jan 28 09:35:08 CST 2008
Witter Cheng wrote:
> Mohit Sindhwani wrote:
>
>> In my 'Hello World' example that I uploaded as a tutorial, I
>> created a stylesheet as a child of the main page and then used that for
>> styling the main page as well as any of its children.
>>
>> Now, I've run into this problem. If I try to iterate through the
>> children of the main page to create a list of links to the children, it
>> obviously also creates a link to the stylesheet.
>>
>
> Override the r:children tags. Using the tags' option hash, join the
> layouts table and add a condition "layouts.content_type != 'text/css'.
>
> To only get children which are normal pages, the conditions should be
> something like "pages.class_name = 'page' and (layouts.content_type = ''
> or layouts.content_type is null)".
>
Wow, that's really a blast from the past! I switched to using a
'no_menu' page part - just add a page part called 'no_menu' to any page
that needs to be skipped... and then use that as part of the condition.
Thanks for the response, though!
Cheers,
Mohit.
1/28/2008 | 11:35 PM.
More information about the Radiant
mailing list