Need help to define templates for custom classes

Author Message

Sébastien Antoniotti

Thursday 18 January 2007 7:22:30 am

Hi,

I need help about templates path :

I have made a custom class (named "artiste"), and I just want to define templates (.tpl) by using correct folders name, so I have tried this to define the line view of the "artiste" class :

design/mydesign/override/templates/artiste/line.tpl,

but since I cleared the cache many times, when I display an artiste node, the default line.tpl template is used...

In fact I want to define templates for custom classes without write rules in the override.ini, you think it's possible ?

thanks in advance !

eZ Publish Freelance
web : http://www.webaxis.fr

Betsy Gamrat

Thursday 18 January 2007 7:55:57 am

Bonjour :)

Please post the version of eZ you are using, and if you are using ezwebin.

Sébastien Antoniotti

Tuesday 23 January 2007 12:55:01 am

Bonjour ;)

Sorry for my delay, I forget to add the discussion to my nodes !

My problem was solved here : http://ez.no/community/forum/developer/template_and_developer_tips

Thanks for your help !

eZ Publish Freelance
web : http://www.webaxis.fr

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 18:38:23
Script start
Timing: Jan 18 2025 18:38:23
Module start 'layout'
Timing: Jan 18 2025 18:38:23
Module start 'content'
Timing: Jan 18 2025 18:38:24
Module end 'content'
Timing: Jan 18 2025 18:38:24
Script end

Main resources:

Total runtime0.9371 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0625152.6406
Module start 'layout' 0.00620.0049 740.703139.4766
Module start 'content' 0.01120.9243 780.1797537.9531
Module end 'content' 0.93550.0016 1,318.132812.1250
Script end 0.9371  1,330.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3511160.0002
Check MTime0.00130.1426160.0001
Mysql Total
Database connection0.00090.100610.0009
Mysqli_queries0.877793.6615570.0154
Looping result0.00060.0621550.0000
Template Total0.901896.220.4509
Template load0.00210.220620.0010
Template processing0.899796.003820.4498
Template load and register function0.00010.011110.0001
states
state_id_array0.00080.080210.0008
state_identifier_array0.00170.186720.0009
Override
Cache load0.00170.1851210.0001
Sytem overhead
Fetch class attribute can translate value0.00100.102120.0005
Fetch class attribute name0.00220.231650.0004
XML
Image XML parsing0.00110.115620.0005
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00100.1094220.0000
String conversion0.00000.001040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs