Forums / Developer / Templates not working like documented...
Claus Jensen
Monday 14 April 2003 4:29:24 am
Hello again,Im still facing problems with the template system. After having made new templates named; full_class_1.tpl (for folders), full_class_7.tpl for news, and full_class_8.tpl for data, there are inconsistencies in the way its using the templates. Its using the full.tpl when I access an object of the classes news or data. I cant find any good reason for why this is happening. Any suggestions to this...please reply...
thanks,claÜs
Jan Borsodi
Monday 14 April 2003 7:26:25 am
Where did you place the new full_class_n.tpl templates?
-- Amos Documentation: http://ez.no/ez_publish/documentation FAQ: http://ez.no/ez_publish/documentation/faq
Thursday 24 April 2003 5:27:12 am
These were placed in : /override/templates/node/view/
Monday 28 April 2003 4:08:19 am
Do you mean under a given design or do you mean in the root of eZ publish. For instance place them in design/standard/override/templates/node/view or for a custom designdesign/mydesign/override/templates/node/view
Monday 28 April 2003 4:45:03 am
Yes, it is in the /design/mydesign/override/templates/node/view/
doing some more testing i find that...:I also have some line_class_7.tpl and this one get overridden if I name a class line.tpl, in the same directory. I thought the contrary should be the case, that if there were no line_class_7.tpl it would use the line.tpl...?!?!?
And this goes for full.tpl as well, if I remove it, its using the full_class_7.tpl for news etc...
It seems to be working exactly opposite of how it should.
claÜs
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0001 secs