User profile edit template, where to define ?!

Author Message

Selmah Maxim

Sunday 01 June 2003 2:35:38 am

Hi ..

How to define which class and which template will execute basd on class id ?

i had write this into /settings/mydesign/override.ini.append.php :

[user_edit]
Source=node/view/full.tpl
MatchFile=user_edit.tpl
Subdir=templates
Match[class]=4

that when user click 'Edit Profile' will view this template user_edit.tpl, and the template is under design/mydesign/override/user_edit.tpl .

But still no result, i get always design/standard/templates/content/edit.tpl template !

why ?
what am understand form this :
[user_edit]
Source=(If template not exists load this one)
MatchFile=(template name)
Subdir=(the folder name where located the template under override folder)
Match[class]= (classid, or nodeid, or sectionid)

am i right ?

any help plz ?

Selmah Maxim

Sunday 01 June 2003 3:47:40 am

ok .. found it :)

i miss understand it :)

[Template file Name]
Source= the template path/name to override
MatchFile=(template name)
Subdir=(the folder name where located the template under override folder)
Match[class]= (classid, or nodeid, or sectionid)

i tho the Source is the same for all, i tho is will be viewed if the main remplate not found, but this wrong :), i had change the settigns to see the loaded template, it was standard/templates/content/edit.tpl , so i put this as Source value, didn`t work content/edit.tpl is the right path, coz standard is the default !

now i understand , i hope some will find this useful !

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

Main resources:

Total runtime0.7513 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.0073 588.0469152.6406
Module start 'layout' 0.00730.0041 740.687539.4766
Module start 'content' 0.01140.7380 780.1641428.8203
Module end 'content' 0.74940.0018 1,208.98448.1250
Script end 0.7512  1,217.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4151160.0002
Check MTime0.00130.1725160.0001
Mysql Total
Database connection0.00110.140710.0011
Mysqli_queries0.701793.3959520.0135
Looping result0.00070.0949500.0000
Template Total0.710494.620.3552
Template load0.00180.242720.0009
Template processing0.708594.307420.3543
Template load and register function0.00030.035510.0003
states
state_id_array0.00200.259710.0020
state_identifier_array0.00200.268320.0010
Override
Cache load0.00170.2288320.0001
Sytem overhead
Fetch class attribute can translate value0.00070.094810.0007
Fetch class attribute name0.00130.175020.0007
XML
Image XML parsing0.00010.015310.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00060.0854100.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs