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]


Context is everything: 

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