Luis Majano Forums Notification: Post to Layout with multiple views?

Title: Layout with multiple views?
Thread: Layout with multiple views?
Forum: Need Help?
Conference: ColdBox
User: bburwick

Hello ColdBox community! I'm just getting started with this framework - and in
fact with MVC in general. So I'm scrambling up the learning curve best I can.
I'm starting a pretty run of the mill application but I have some questions
about how to set up the layout in ColdBox. I want a header and navigation menu
at the top, and content below. If the content of the navigation menu changes
based on the user's role and current location, should this logic be in the
layout code, in another view called by the layout, or someplace else altogether?
The layout with two views (one for the menu, one for content) I was thinking
of would be like this:
[code]
header stuff
<cfoutput>#renderView("vwMenu")#</cfoutput>
<cfoutput>#renderView()#</cfoutput>
[/code]
Does that make sense or have I misunderstood everything? Is there a
better way?

Thanks!
-Ben

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=6F70B1EE-123F-6116-4234594C2E46F5B2