[magnolia-dev] Site module prototype templates fail to render
"Arjen Schipmolder (via Magnolia Forums)" <forum-O8DnXSz/[email protected]> Wed, 12 Jul 2017 15:54:27 +0200
| Newsgroups | gmane.comp.cms.magnolia.devel |
|---|---|
| Message-ID | <1634455469.41.1499867666453.JavaMail.forum@fred> |
Hi=2C I=27ve been given an existing project to add some new features to but I=27m= stuck getting the existing project to run smoothly to begin with and I was= hoping someone has seen this issue before and can give me some pointers=2E= =2E=2E After troubleshooting I narrowed the cause of the issues down to the use of= template prototypes that=2C for some reason=2C don=27t work but instead I= get an exception when loading any page using these templates=3A =5Bcode=5DRenderException=3A No template script defined for the template de= finition =5Binfo=2Emagnolia=2Erendering=2Etemplate=2Econfigured=2EConfigure= dTemplateDefinition=40444d333f=5Bid=3Dcustom-templating-module=3Apages/cate= gory=2Cname=3Dcategory=2CrenderType=3Dsite=2Cdescription=3D=3Cnull=3E=2Ctit= le=3DCategory=2CtemplateScript=3D=3Cnull=3E=2CautoGeneration=3Dinfo=2Emagno= lia=2Erendering=2Etemplate=2Econfigured=2EConfiguredAutoGeneration=40285f90= 21=5Bcontent=3D=7B=7D=2CgeneratorClass=3D=3Cnull=3E=5D=5D=5D info=2Emagnolia=2Erendering=2Eengine=2ERenderException=3A No template scrip= t defined for the template definition =5Binfo=2Emagnolia=2Erendering=2Etemp= late=2Econfigured=2EConfiguredTemplateDefinition=40444d333f=5Bid=3Dcustom-t= emplating-module=3Apages/category=2Cname=3Dcategory=2CrenderType=3Dsite=2Cd= escription=3D=3Cnull=3E=2Ctitle=3DCategory=2CtemplateScript=3D=3Cnull=3E=2C= autoGeneration=3Dinfo=2Emagnolia=2Erendering=2Etemplate=2Econfigured=2EConf= iguredAutoGeneration=40285f9021=5Bcontent=3D=7B=7D=2CgeneratorClass=3D=3Cnu= ll=3E=5D=5D=5D =09at info=2Emagnolia=2Erendering=2Erenderer=2EAbstractRenderer=2Erender=28= AbstractRenderer=2Ejava=3A148=29 =09etc =09etc =09=5B/code=5D When checking the JCR all pages have their renderType set to =27site=27 and= they have no templateScript set=2E I then checked for the prototype node in the JCR as per the user guide =28h= ttps=3A//documentation=2Emagnolia-cms=2Ecom/display/DOCS/Template+prototype= =29 and found it here=3A =5Bcode=5D/modules/custom-templating-module/config/=3Cproject name=3E/templ= ates/prototype =5B/code=5D This has one templateScript parameter which is set to /custom-templating-mo= dule/templates/pages/main=2Eftl =28and for the rest it=27s got definitions= for the different areas=29 I checked all paths and this template does exist and looks ok to me=2E Eventually=2C as a test=2C I ended up changing the category page template a= nd set it=27s renderType to freemarker with templateScript to the same main= =2Eftl file and that works fine up to the first =40cms=2Earea include as th= at too fails=2C but at least i know rendering via freemarker alone does wor= k=2E Does anybody have any ideas why the site module wouldn=27t work or how to t= roubleshoot this further=3F Thanks! Arjen Magnolia Community 5=2E4=2E5 =28dependencies include magnolia-site and magnolia-site-app=29 JRE 1=2E7 Tomcat 7 --=20 Context is everything=3A http=3A//forum=2Emagnolia-cms=2Ecom/forum/thread= =2Ehtml=3FthreadId=3D11924ebb-7442-462b-8be4-ac30c2f6fbf0 ---------------------------------------------------------------- For list details=2C see=3A http=3A//www=2Emagnolia-cms=2Ecom/community/mail= ing-lists=2Ehtml Alternatively=2C use our forums=3A http=3A//forum=2Emagnolia-cms=2Ecom/ To unsubscribe=2C E-mail to=3A =3Cdev-list-unsubscribe=40magnolia-cms=2Ecom= =3E ----------------------------------------------------------------