Loading...

cfwheels@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [cfwheels] True nested layouts Per Djurner Tue Feb 21 08:00:17 2012

Did you follow the instructions under "Nested/Inherited Layouts" here?
http://cfwheels.org/docs/1-1/chapter/using-layouts

On Tue, Feb 21, 2012 at 4:05 PM, Tom King <[EMAIL PROTECTED]> wrote:

> I may well be missing something here.. but..
>
> Nested layouts - what I currently have is this
>
> /views/layout.cfm <----master layout file, includes the <html><body> tags
> etc.
> /views/main/layout.cfm <---- layout file for the main controller, which
> overrides /views/layout.cfm
> /views/main/index.cfm <---- the main content page
>
> At the moment, /views/main/layout.cfm will override /views/layout.cfm
> completely. this means I have an identical call to a bunch of partials in
> both the master layout and the sublayout in order to recreate the top
> layout page.
>
> Without using partials, and without having to specify layouts on the child
> page, how can I get this?
>
> /views/layout.cfm <----master layout file, includes the <html><body> tags
> etc.
> /views/main/layout.cfm <---- layout file for the main controller, nesting
> automatically within /views/layout.cfm
> /views/main/index.cfm <---- the main content page, nesting automatically
> with /views/main/layout.cfm
>
> i.e, I can't seem to work out how to make it automatically inherit the
> parent layout wrapped around it..
> What am I missing?
> Ta
> T
>
> --
> You received this message because you are subscribed to the Google Groups
> "ColdFusion on Wheels" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cfwheels/-/831zSers8iUJ.
> To post to this group, send email to [EMAIL PROTECTED]
> To unsubscribe from this group, send email to
> [EMAIL PROTECTED]
> For more options, visit this group at
> http://groups.google.com/group/cfwheels?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ColdFusion on Wheels" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfwheels?hl=en.