Hi folks,
I have a web app which I successfully integrated to Magnolia as a new website
home. I've created new template pages and included my modelClass (which extends
RenderingModelImpl). All works fine - as expected it renders as my html on
white background, i.e. no Magnolia theme.
Now I want to integrate the web app pages into an existing Magnolia project
(i.e. the demo-project) so that it inherits all the look/feel/theme of Magnolia.
To achieve this, I have created new template pages which extend stkArticle
(from the templating module). I am overridding the areas/main/templateScript
data node value to point at my specific freemarker script, as well as setting
the renderType to freemarker. The modelClass value is also overridden to point
at my model.
I can create pages under demo-project using these templates, but when I open
one of them, I get the following exception:
[quote]
Template Error!
Error while rendering [/demo-project/member-self-service] with template
[xxxMSS-magnolia:pages/in-demo/mssHome]: RenderException: No template script
defined for the template definition
[info.magnolia.module.templatingkit.templates.pages.STKPage@7d493d77[id=xxxMSS-magnolia:pages/in-demo/mssHome,name=mssHome,renderType=freemarker,description=<null>,title=MSS
Home,templateScript=<null>,autoGeneration=info.magnolia.rendering.template.configured.ConfiguredAutoGeneration@53628fe3[content={},generatorClass=<null>]]]
[/quote]
I'm assuming I've created an extension of stkArticle which is incompatiable
with stkArticle's default behaviour.
Any suggestions?
Regards,
Paul
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=7609ea5b-2a6a-42cf-bab2-e84581c6033e
----------------------------------------------------------------
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: <[email protected]>
----------------------------------------------------------------