Template system not working correctly

Author Message

Claus Jensen

Wednesday 09 April 2003 1:21:26 am

Hello,
Im having problems making my custom design in ez. I have read the manual and sdk on the template system and followed this (http://ez.no/sdk/tutorials/view/content_classes and http://ez.no/sdk/tutorials/view/templateissues/), but it dont seem to work as documented.
Here's my setup:
A news class, id = 22
A services class, id = 24
etc...
In my design I have a user_eec folder im using for my custom design templates. In the design/user_eec/override/node/view/ Im putting some custom templates; full_class_22.tpl, full_class_24.tpl, full.tpl etc...

But when I try to access the news class or services class it always is using th e full.tpl template instead of the full_class_22.tpl ++.
It also uses a line_class_7.tpl to show the childs of these objects, but I cant find out why and how this is used, because the full.tpl says nothing about a line_class_7.tpl to be used for the childs, and the child classes are 22 and 24 etc...

What is wrong here?!? Can someone please explain why it doesnt work?

regards,
claÜs

Paul Borgermans

Wednesday 09 April 2003 4:16:46 am

Did you clear the cache files? And even turn off caching in site.ini? You need to do this when developing templates.

I make custom classes and templates and it works.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Claus Jensen

Wednesday 09 April 2003 5:37:18 am

>Did you clear the cache files? And even turn off caching in site.ini? You need to do this when developing templates.
>I make custom classes and templates and it works.
>Paul

Yes, caching is off and I see changes when I edit the full.tpl file. So you have done it the same way that I explained above, and it works?

Mine is always using the full.tpl even though it exists a design/user_eec/override/node/view/full_class_22.tpl, and I access this: http://www.mysite.com/user_eec/content/view/full/22/

Kai Duebbert

Thursday 10 April 2003 12:58:21 am

You have the wrong path.

WRONG: "design/user_eec/override/node/view/"
right: "design/user_eec/override/templates/node/view/"

Hope this solves it.

Kai

Claus Jensen

Thursday 10 April 2003 1:43:52 am

Thats right, but only a typo.
Everybody stop thinking about this..I found the problem!
I was using the object Id's instead of the class id's... really neat! full_class_22.tpl (the news template) should really be full_class_1.tpl (the folder class) which is what the news class is.

thanks for reply's anyways :)
claÜs

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.