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 eZ publish.
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

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

eZ debug

Timing: Jan 18 2025 05:06:38
Script start
Timing: Jan 18 2025 05:06:38
Module start 'layout'
Timing: Jan 18 2025 05:06:38
Module start 'content'
Timing: Jan 18 2025 05:06:39
Module end 'content'
Timing: Jan 18 2025 05:06:39
Script end

Main resources:

Total runtime0.6224 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0156152.6250
Module start 'layout' 0.00580.0030 740.640639.4453
Module start 'content' 0.00880.6121 780.0859554.6797
Module end 'content' 0.62090.0014 1,334.765612.1406
Script end 0.6223  1,346.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4841160.0002
Check MTime0.00130.2139160.0001
Mysql Total
Database connection0.00080.126010.0008
Mysqli_queries0.569991.5683630.0090
Looping result0.00060.0928610.0000
Template Total0.589894.820.2949
Template load0.00210.333120.0010
Template processing0.587794.425720.2938
Template load and register function0.00020.025710.0002
states
state_id_array0.00080.132710.0008
state_identifier_array0.00130.203720.0006
Override
Cache load0.00170.2729260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.076820.0002
Fetch class attribute name0.00120.190860.0002
XML
Image XML parsing0.00060.093120.0003
class_abstraction
Instantiating content class attribute0.00000.004670.0000
General
dbfile0.00080.1281170.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs