process in template

Author Message

Pavel Konovalov

Wednesday 08 November 2006 10:09:26 am

Hi 2 all.
When I create or edit object I used the same template for both actions.
How can be determined the action (for example add or edit object attributes) inside the template?

Are you gangsters?!
No, we are Russians.

Xavier Dutoit

Wednesday 08 November 2006 10:33:03 am

I don't see the point of using the same template, as quite a few things have to be different between the two anyway.

I'd suggest to reconsider using the same template.

X+

http://www.sydesy.com

Vicente Olivan

Wednesday 08 November 2006 10:46:02 am

Hi,
Imagine you work with 3.8.x version.

See: http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/content_management/the_content_class

The content object is a case of content class formed by datatypes. Add or edit datatypes, go to <b>Setup > Classes</b> administration interface.

Regards

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 19 2025 00:16:00
Script start
Timing: Jan 19 2025 00:16:00
Module start 'layout'
Timing: Jan 19 2025 00:16:00
Module start 'content'
Timing: Jan 19 2025 00:16:01
Module end 'content'
Timing: Jan 19 2025 00:16:01
Script end

Main resources:

Total runtime1.0138 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.8125152.6094
Module start 'layout' 0.00680.0032 740.421939.4141
Module start 'content' 0.00991.0015 779.8359576.5781
Module end 'content' 1.01140.0024 1,356.414112.1875
Script end 1.0138  1,368.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3990160.0003
Check MTime0.00200.1938160.0001
Mysql Total
Database connection0.00150.143010.0015
Mysqli_queries0.951393.8289590.0161
Looping result0.00070.0729570.0000
Template Total0.971395.820.4857
Template load0.00230.229020.0012
Template processing0.969095.573220.4845
Template load and register function0.00020.024510.0002
states
state_id_array0.00270.262510.0027
state_identifier_array0.00140.136220.0007
Override
Cache load0.00180.1795190.0001
Sytem overhead
Fetch class attribute can translate value0.00110.107530.0004
Fetch class attribute name0.00130.129760.0002
XML
Image XML parsing0.00450.442330.0015
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00380.3782280.0001
String conversion0.00000.000940.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
3content/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: 6

Time used to render debug report: 0.0002 secs