Editing custom templates

Author Message

gavyn eade

Thursday 29 May 2003 4:24:42 am

Hi all,
Is there a structured way to make custom templates editable by users after they have logged in.
I did get this working by copying sections of the code from full.tpl to get the edit button to appear when a user who is logged in has the edit privellages for that section. However as the rest of the system is well structured with the override directory, am i missing something here? Maybe there is a /override/templates/node/edit/ that i should be useing for this. If so could someone tell give me an example of how to do this.

Thanks in advance,
Gavyn

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

Main resources:

Total runtime0.9509 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.3438152.6250
Module start 'layout' 0.00770.0040 741.968839.4453
Module start 'content' 0.01180.9377 781.4141400.5391
Module end 'content' 0.94940.0014 1,181.95318.1641
Script end 0.9509  1,190.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3894160.0002
Check MTime0.00140.1465160.0001
Mysql Total
Database connection0.00170.182310.0017
Mysqli_queries0.912895.9922460.0198
Looping result0.00050.0489440.0000
Template Total0.915996.320.4579
Template load0.00200.212520.0010
Template processing0.913896.099520.4569
Template load and register function0.00020.021510.0002
states
state_id_array0.00140.142210.0014
state_identifier_array0.00170.181320.0009
Override
Cache load0.00160.169380.0002
Sytem overhead
Fetch class attribute can translate value0.00150.153110.0015
Fetch class attribute name0.00120.125310.0012
XML
Image XML parsing0.00010.012110.0001
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00060.0584100.0001
String conversion0.00000.001240.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs