RE: [coldbox:18222] [Coldbox 3.6.0] Question on getting data for none view related items in a layout.

Your layout can also run an event. In the event return the HTML ouput of renderView(“menu/mainMenu”). Then in your layout it just looks like:

#runEvent(“menu.mainMenu”)#

That event can handle getting all the data needed by mainMenu’s view so it’s all compact and re-usable.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Ok, I think this is close to what I am looking for. I will have to give it a try. Will runEvent automatically return the resulting view or do I need to manually output the HTML somewhere along the way?