Forums / Developer / Template system not working correctly

Template system not working correctly

Author Message

Claus Jensen

Wednesday 09 April 2003 1:21:26 am

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

Paul Borgermans

Wednesday 09 April 2003 4:16:46 am

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

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Claus Jensen

Wednesday 09 April 2003 5:37:18 am

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

Kai Duebbert

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

Claus Jensen

Thursday 10 April 2003 1: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 :)
claÜs

eZ debug

Timing: Jan 18 2025 02:17:10
Script start
Timing: Jan 18 2025 02:17:10
Module start 'content'
Timing: Jan 18 2025 02:17:11
Module end 'content'
Timing: Jan 18 2025 02:17:11
Script end

Main resources:

Total runtime0.9719 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 587.7344180.8281
Module start 'content' 0.00890.8261 768.5625601.7344
Module end 'content' 0.83510.1368 1,370.2969337.3672
Script end 0.9719  1,707.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3998210.0002
Check MTime0.00150.1580210.0001
Mysql Total
Database connection0.00130.136610.0013
Mysqli_queries0.897192.30002020.0044
Looping result0.00210.21112000.0000
Template Total0.935396.220.4677
Template load0.00170.179920.0009
Template processing0.933696.054220.4668
Template load and register function0.00020.020710.0002
states
state_id_array0.00120.125510.0012
state_identifier_array0.00110.115020.0006
Override
Cache load0.00150.1518380.0000
Sytem overhead
Fetch class attribute can translate value0.00150.155940.0004
Fetch class attribute name0.00110.115060.0002
XML
Image XML parsing0.00100.104940.0003
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00160.1671280.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs