Forums / Developer / Templates not working like documented...

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Templates not working like documented...

Author Message

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

Claus Jensen

Thursday 24 April 2003 5:27:12 am

These were placed in : /override/templates/node/view/

Jan Borsodi

Monday 28 April 2003 4:08:19 am

Do you mean under a given design or do you mean in the root of Exponential.
For instance place them in
design/standard/override/templates/node/view
or for a custom design
design/mydesign/override/templates/node/view

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Claus Jensen

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