User edit template

Author Message

Marin Orlic

Thursday 29 September 2005 12:48:45 pm

What is the proper way to override user edit template?
I have a custom user (profile) class, call it user2 and override it with:

[edit_user2]
Source=content/edit.tpl
MatchFile=edit/user2.tpl
Subdir=templates
Match[class_identifier]=user2

This doesn't work, base template is loaded instead. eZDebug shows:

Template = edit/user.tpl
Requested template = content/edit.tpl
Template loaded = design/base/override/templates/edit/user.tpl

I tried to add override:

[edit_user2_2]
Source=edit/user.tpl
MatchFile=edit/user2.tpl
Subdir=templates
Match[class_identifier]=user2

No use.

Copying the template to design/.../templates/user/edit.tpl also doesn't work.

Help? Bug?

eZ 3.7.0rc2 php4.4

Marin Orlic

Thursday 29 September 2005 12:55:36 pm

Yes, I cleared the cache. Dozens of times. Didn't work.

Now it does. No idea why.

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:30:25
Script start
Timing: Jan 18 2025 11:30:25
Module start 'layout'
Timing: Jan 18 2025 11:30:25
Module start 'content'
Timing: Jan 18 2025 11:30:26
Module end 'content'
Timing: Jan 18 2025 11:30:26
Script end

Main resources:

Total runtime0.8016 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.0234152.6094
Module start 'layout' 0.00750.0035 741.632839.4141
Module start 'content' 0.01110.7890 781.0469427.2813
Module end 'content' 0.80000.0015 1,208.32818.1875
Script end 0.8016  1,216.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4244160.0002
Check MTime0.00150.1852160.0001
Mysql Total
Database connection0.00150.190410.0015
Mysqli_queries0.752693.8847520.0145
Looping result0.00050.0675500.0000
Template Total0.760894.920.3804
Template load0.00290.364620.0015
Template processing0.757894.535720.3789
Template load and register function0.00020.025510.0002
states
state_id_array0.00120.154710.0012
state_identifier_array0.00100.125820.0005
Override
Cache load0.00170.2139270.0001
Sytem overhead
Fetch class attribute can translate value0.00100.123810.0010
Fetch class attribute name0.00100.130220.0005
XML
Image XML parsing0.00010.014110.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.0945100.0001
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0002 secs