Hi,

On Aug 3, 2010, at 11:04 AM, Andrea Castelli wrote:

Hi Magnolians,
I'm working on 4.3.2 and I'm following the example about subtemplates (http://documentation.magnolia-cms.com/templating/introduction.html ) provided for the old 3.x.x that I used many times.

I created the a subtemplates .xml and I obtained the following error when calling the page associated to the subtemplate

2010-08-03 10:55:46,209 ERROR info.magnolia.module.templating.RenderingFilter : Can't create rendering model: ClassCastException: info.magnolia.module.templating.RenderingModelImpl cannot be cast to info.magnolia.module.templatingkit.templates.STKTemplateModel info.magnolia.module.templating.RenderException: Can't create rendering model: ClassCastException: info.magnolia.module.templating.RenderingModelImpl cannot be cast to info.magnolia.module.templatingkit.templates.STKTemplateModel at info .magnolia .module.templating.AbstractRenderer.render(AbstractRenderer.java:73) at info .magnolia .module .templatingkit .renderers.STKTemplateRenderer.render(STKTemplateRenderer.java:88)

My questions are:
-In order to  define a subtemplate, what are the configurations?

Basic configuration is extension, type, and templatePath, depending on the type you will need extra parameters.

-I defined MySTKTemplate extension of STKTemplate and added a class value like this: subtemplates/xml/class. Is it right?

If your template is type stk, you will also need to specify the modelClass, the sample in the documentation is using type freemarker, that's why it does not need any extra parameters.

-Is there a working example?
-Any advice??

Thank you.
Best Regards.

Andrea



Best regards,

Teresa Miyar
Magnolia International Ltd.

You should join us at Magnolia Conference 2010:
        http://www.magnolia-cms.com/conference

Magnolia®  - Simple Open Source Content Management








----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to