Templates with the same name override each other

Author Message

Eirik Alfstad Johansen

Monday 05 January 2004 7:10:21 am

Hi,

I've noticed that if I create to different template overrides with the same name, the first is overwritten by the second. This makes sense since they all are in the same folder, but shouldn't there at least be generated a warning when one tries to create an override template that already exists?

I know that with proper naming conventions this shouldn't happen, but for newbies, this is a mistake that's easy to make.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Borgermans

Monday 05 January 2004 12:29:37 pm

I second that, its not only newbies that make these errors.

Robustness is an enterprise level requirement, and there are other areas that need more "protection" (the content edit/update is already at that level imho)

-paul

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

Eirik Alfstad Johansen

Monday 05 January 2004 2:03:26 pm

Hi again,

Thanks for your feedback, Paul. Another problem I've encountered when editing templates is when my partner and I edit the same template simultaneously. Why not lock a template for editing when one user is viewing it in edit mode?

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 31 2025 04:32:34
Script start
Timing: Jan 31 2025 04:32:34
Module start 'layout'
Timing: Jan 31 2025 04:32:34
Module start 'content'
Timing: Jan 31 2025 04:32:34
Module end 'content'
Timing: Jan 31 2025 04:32:34
Script end

Main resources:

Total runtime0.0175 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.2656151.2266
Module start 'layout' 0.00640.0034 739.492236.6797
Module start 'content' 0.00980.0058 776.171990.0938
Module end 'content' 0.01560.0018 866.265633.9922
Script end 0.0174  900.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003117.9083140.0002
Check MTime0.00158.4846140.0001
Mysql Total
Database connection0.00148.084710.0014
Mysqli_queries0.002916.849130.0010
Looping result0.00000.096910.0000
Template Total0.00137.210.0013
Template load0.00105.610010.0010
Template processing0.00031.607910.0003
Override
Cache load0.00074.213610.0007
General
dbfile0.00042.571680.0001
String conversion0.00000.035540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs