Forums / Developer / Template override conditions

Template override conditions

Author Message

Pavel Konovalov

Wednesday 01 November 2006 2:22:32 am

Please, help me.
What kind of condition I could use if I want create override template for next template:
"design/standard/templates/notification/handler/ezsubtree/view/plain.tpl".
I want to use this template for user's distribution.

Are you gangsters?!
No, we are Russians.

Claudia Kosny

Wednesday 01 November 2006 9:34:07 am

Hi Pavel

If you want to replace this template generally for your siteaccess, you can just put the override in such an folder:
design/<your siteaccess>/override/templates/notification/handler/ezsubtree/view/plain.tpl.

I don't think that dynamic overrides are possible for this template.

Claudia

Pavel Konovalov

Wednesday 01 November 2006 10:02:39 am

Hi Claudia!
Thank you.
The solve didn't help me.

Are you gangsters?!
No, we are Russians.

Claudia Kosny

Wednesday 01 November 2006 11:00:00 am

Hi Pavel

Hmm, in this case I don't know either what to do. Usually it is enough to place the override templates in the corresponding folder on the custom design folder for your siteaccess if you don't want or have any specific override conditions. So if that does not work either I don't see any other option then to replace the original template.

Claudia

eZ debug

Timing: Jan 18 2025 22:15:49
Script start
Timing: Jan 18 2025 22:15:49
Module start 'content'
Timing: Jan 18 2025 22:15:49
Module end 'content'
Timing: Jan 18 2025 22:15:49
Script end

Main resources:

Total runtime0.0199 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1563180.8359
Module start 'content' 0.00650.0054 769.992293.8672
Module end 'content' 0.01190.0080 863.859470.7031
Script end 0.0198  934.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002110.4271120.0002
Check MTime0.00104.9883120.0001
Mysql Total
Database connection0.00073.403610.0007
Mysqli_queries0.003115.601840.0008
Looping result0.00000.089620.0000
Template Total0.007637.910.0076
Template load0.00073.573310.0007
Template processing0.006834.290610.0068
Override
Cache load0.00052.391410.0005
General
dbfile0.002713.6562100.0003
String conversion0.00000.039430.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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