ezP 3.1 -> Overriding line.tlp : no result

Author Message

laurent le cadet

Tuesday 14 October 2003 10:12:22 am

Hi,

I'm trying to overriding line.tlp for the folders :

1 - override.ini.append

[line_folder]
Source=node/view/line.tpl
MatchFile=line_folder.tpl
Subdir=templates
Match[class]=1

2 - I created the "line_folder.tpl"

3 - Clear all the caches

Niet :o(

Is that template can't be overriding ? (?!?)
Any suggestion ?

Thanks.

Laurent.

Paul Forsyth

Wednesday 15 October 2003 1:14:52 am

- What errors are you seeing?
- Does the admin/templates view tell you your override is in place?
- Are your file permissions correct for the new file?
- Put your override to the top of all overrides. I've found the order is important if you have other overrides working on the same source file...

Paul

laurent le cadet

Wednesday 15 October 2003 3:25:32 am

Hi Paul,

- What errors are you seeing? -> No error. The template which is used is the line.tpl
- Does the admin/templates view tell you your override is in place? -> I looked in the admin>settings>Templates but I can't see the templates I have created before (just the design/standard/templates) - I don't know this part of the admin very well :(
- Are your file permissions correct for the new file? -> Where can I set that ?
- Put your override to the top of all overrides. I've found the order is important if you have other overrides working on the same source file... -> I tried but till no result

Laurent

Paul Forsyth

Wednesday 15 October 2003 4:23:15 am

In the admin/templates section you should see a link for: node/view/line.tpl. If you click this the system will tell you its understanding of the overrides in place. If you see yours then it should be active. Its a quick test to see if ez has understood your override. Have a play with this.

Your new file line_folder.tpl may be on the system with the wrong permissions. Usually this appears as an error on the page saying it can't open something, but it depends on your debug settings/cache etc. Your new file needs to be readable by the web server. Permission problems are something i forget a lot :)

How did you create this file? By hand on the file system?

Btw, whats your system? Linux/XP?

Keep going :)

Paul

laurent le cadet

Wednesday 15 October 2003 5:25:26 am

ok !
In admin/templates I have the line.tpl. With the set button on the correct site design I have this :

line_folder design/landivisiau/override/templates/line_folder.tpl class : 1

So I understand the template is correctly set by the system.

For the permission problems, I have already created many templates without any problem...
Do I need to declare something special for this template ?

The file was created by hand.

And finally I'm working with XP pro.

Thanks for your help :-)
Laurent.

Paul Forsyth

Wednesday 15 October 2003 5:37:03 am

Im not sure of the permissions needed for winxp, as i work with linux. If others work then that should work as well.

Just a thought. You are using the line view but is your template calling for another view like full?

paul

laurent le cadet

Wednesday 15 October 2003 5:54:50 am

BINGO !

:-) :-) :-)

So many templates !!!! ;-)


I hope that that did not take too much time to you and this thread will serve the community.

Thanks again.

Laurent.

Paul Forsyth

Wednesday 15 October 2003 6:02:25 am

Np :)

paul

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

Main resources:

Total runtime0.7263 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1484152.6406
Module start 'layout' 0.00510.0024 741.789139.4766
Module start 'content' 0.00750.7174 781.2656568.8203
Module end 'content' 0.72490.0013 1,350.085916.1250
Script end 0.7262  1,366.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4134160.0002
Check MTime0.00130.1832160.0001
Mysql Total
Database connection0.00070.099010.0007
Mysqli_queries0.653789.9993720.0091
Looping result0.00080.1138700.0000
Template Total0.694295.620.3471
Template load0.00190.263520.0010
Template processing0.692395.316920.3461
Template load and register function0.00010.010310.0001
states
state_id_array0.00100.130810.0010
state_identifier_array0.00120.166620.0006
Override
Cache load0.00170.2334680.0000
Sytem overhead
Fetch class attribute can translate value0.00050.071620.0003
Fetch class attribute name0.00140.195490.0002
XML
Image XML parsing0.00040.060520.0002
class_abstraction
Instantiating content class attribute0.00000.0032120.0000
General
dbfile0.00070.1001160.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/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: 36
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs