Loading...

cfwheels@googlegroups.com

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

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

Nice work, interesting solution.

On Tue, Feb 21, 2012 at 6:09 PM, Greg Stallings <[EMAIL PROTECTED]>wrote:

> Awesome, I've been wondering how to do this for ages!
>
> On Feb 21, 8:26 am, Tom King <[EMAIL PROTECTED]> wrote:
> > Aha - got it...
> >
> > Master layout:
> > <!--- Place HTML here that should be used as the default layout of your
> > application --->
> > <html>
> >     <body>
> >         <div style="background:red; padding:10px;">
> >             <p style="color:white;">1) Top Level Layout -
> > /views/layout.cfm</p>
> >             <cfoutput>#includeContent("mainbody")#</cfoutput>
> >         </div>
> >     </body>
> > </html>
> >
> > Sublayout:
> > <cfoutput>
> > <cfsavecontent variable="mainbody">
> > <div style="background:green; padding:10px; color:white;">
> >     <p>2) /views/main/layout.cfm </p>
> >     #includeContent()#
> > </div>
> > </cfsavecontent>
> > <cfset contentFor(mainbody=mainbody)>
> > #includeLayout("/layout.cfm")#
> > </cfoutput>
> >
> > Thanks All..
>
> --
> 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.
>
>

-- 
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.