Hi everybody, Have created my own template page which extends stkSection, overridden the areas/main/templateScript value to point at my own freemarker script. The model class value is also overridden to point at my custom class which extends STKPageModel.
>From logging comments, I can see that my custom model class is instantiated, >but if my script contains "Using model class: ${model.class.name}" then it >prints: info.magnolia.rendering.model.RenderingModelImpl Where my script uses data from the model class (i.e. i have a state object so script references ${model.state}), then I get a InvalidReferenceException saying that model.state is undefined. However, the same custom model class extending RenderingModelImp in a page template that doesn't extend one of the STK templates works perfectly fine. Any suggestions to what I might have figured wrongly? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=b9ae22ff-6b27-46b8-8a93-25a0673b58ee ---------------------------------------------------------------- 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> ----------------------------------------------------------------