Template changes not shown

Author Message

Mihai007 Pop

Thursday 17 April 2008 1:46:41 am

Hi!

I am encountering something that seems to cause a delay in development everytime I want to change a template. I am sure there is some setting I might be missing somewhere.

When I change a template override such as "full" view of a folder and apply the changes (through the admin interface), then everything show up nicely on the site.

But when I am changing something on the "line" view of a template, then I have to remove caches for "template and content" to be able to display the changes. I even tried to go to the full view and change it so that I enforce the changes, but the line view templates seem to be cached until such time I perform a full cache removal. Why is this so? Can I change this while I do a development? Because it is very tedious to always wait for caches to be removed just for a small change.

Thanks guys...!

Yours truly, Mihai

Kristof Coomans

Thursday 17 April 2008 5:16:28 am

Hi Mihai

Where exactly is the line view used?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mihai007 Pop

Thursday 17 April 2008 8:12:14 am

Hi.

Okay - if I edit node/view/full for the folder.tpl then everytime I save it I <b>can</b> see the changes I have made without having to clear any caches.

But inside the same template there is the following line:
{node_view_gui view='line' content_node=$child}

So if I want to make a certain change to this line's template then I have to edit the node/view/line for the let's say product.tpl.

So I do. I can change it and it looks different and all that. However when I want to see the changes on the website, they are served from a cache. Unless I delete the Templates & Content caches I will not be able to see the change inside this kind of file. I mean the line file.

André R.

Friday 18 April 2008 1:01:54 am

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 11:42:01
Script start
Timing: Jan 18 2025 11:42:01
Module start 'layout'
Timing: Jan 18 2025 11:42:01
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 11:42:02
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 15 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 11:42:02
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 15 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 11:42:02
Module end 'content'
Timing: Jan 18 2025 11:42:02
Script end

Main resources:

Total runtime0.8769 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9141152.6250
Module start 'layout' 0.00690.0037 740.539139.4453
Module start 'content' 0.01060.8648 779.9844591.2734
Module end 'content' 0.87540.0015 1,371.257813.6797
Script end 0.8769  1,384.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3936160.0002
Check MTime0.00150.1716160.0001
Mysql Total
Database connection0.00170.193910.0017
Mysqli_queries0.819193.4078620.0132
Looping result0.00080.0896600.0000
Template Total0.837695.520.4188
Template load0.00210.244620.0011
Template processing0.835495.267320.4177
Template load and register function0.00020.018710.0002
states
state_id_array0.00120.139810.0012
state_identifier_array0.00070.078020.0003
Override
Cache load0.00180.2043220.0001
Sytem overhead
Fetch class attribute can translate value0.00090.107730.0003
Fetch class attribute name0.00290.334860.0005
XML
Image XML parsing0.00110.119830.0004
class_abstraction
Instantiating content class attribute0.00000.002460.0000
General
dbfile0.00100.1131230.0000
String conversion0.00000.001340.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs