This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Template system not working correctly
expandshrink

Template system not working correctly

Template system not working correctly

Wednesday 09 April 2003 10:21:26 am - 4 replies

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

Wednesday 09 April 2003 1:16:46 pm

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

Wednesday 09 April 2003 2:37:18 pm

>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/

Thursday 10 April 2003 9: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

Thursday 10 April 2003 10: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 happy.gif Emoticon
claÜs

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from