Anyone have an example of a module with it's own l...
# box-products
s
Anyone have an example of a module with it's own layout that then renders inside the parent app's layout? Having trouble grokking how to do this from the docs, it's gotta be doable?
Use case: parent layout has primary nav, one points to module entry point. Every event in module needs same sub-nav. I would like to put the subnav into a module layout and have it render the event view within, and then the whole of that gets rendered within the parent layout.
r
Copy code
<cfset renderer = getInstance('coldbox:renderer') />
<cfoutput>
	#renderer.renderLayout( layout="main", module="plutus_admin", view="test/index", viewModule="plutus_admin" )#
</cfoutput>
image.png
is this kind of what you looking for?
s
Not quite, no. I don't want to render a view in the parent layout, I want to render a view in the module layout and then have that whole result rendered into the parent layout where
renderview()
is.
r
hmm im not a 100% sure. Ive been playing around trying to achieve thsi
have not come up with an answer yet but ill continue to try