Hi Tim-

Your investigation is correct. Any template can have a model class attached. So 
at the time of an area rendering the system will look to see if there was a 
model class defined on the area template. If so, it's executed, otherwise 
nothing. The system would not look for parent model to execute or something 
like that. 

So I see two possibilities. You can create an area model which exposes a public 
method for accessing the parent model. Or you pass the data into the area 
rendering through a context parameter. If it were me I'd use the latter.

Something like:
[code][@cms.area name="myArea" contextAttributes={"myData":model.data}][/code]

HTH
richg

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=1fe8e5ee-21c3-4921-9e98-aa26989537d9


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to