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)". -- Posted via http://www.ruby-forum.com/. _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
