Using class name instead of numeric id in template override system

Author Message

antonio lombrano

Friday 23 January 2004 12:30:36 pm

I posted a similar comment in the documentation. I think that the use of numeric id in the template override system will cause the code to be not portable. The same class will usually have different ids in different system. So the coder will be obliged to check and modify the code before porting it to another system. It would be much simpler using the class name or a user-definied id.

Kåre Køhler Høvik

Monday 26 January 2004 5:53:18 am

Hi

Version 3.4 already support the following syntax:

Match[class_identifirer]=folder

We'll use this in the packages for 3.4

--
Kåre Høvik

Kåre Høvik

antonio lombrano

Tuesday 27 January 2004 4:59:18 am

Oh...that's much better.
So, if I create a new class...let's say book_review I will use
Match[Class_identifier]=book_review
Right ?

Kåre Køhler Høvik

Tuesday 27 January 2004 5:06:24 am

Hi

In 3.3 you'll have to use the old syntax. If you want to use 3.4*, and the new syntax, take a look at : http://pubsvn.ez.no.

*3.4 is under development, and might be very unstable.

--
Kåre Høvik

Kåre Høvik

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

Main resources:

Total runtime0.9403 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2109152.6563
Module start 'layout' 0.00570.0034 740.867239.4922
Module start 'content' 0.00910.9299 780.3594541.9063
Module end 'content' 0.93890.0014 1,322.265612.0938
Script end 0.9403  1,334.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3553160.0002
Check MTime0.00130.1427160.0001
Mysql Total
Database connection0.00110.121410.0011
Mysqli_queries0.880293.6042600.0147
Looping result0.00060.0670580.0000
Template Total0.907396.520.4536
Template load0.00240.253320.0012
Template processing0.904996.229720.4524
Template load and register function0.00020.026110.0002
states
state_id_array0.00150.164810.0015
state_identifier_array0.00180.191220.0009
Override
Cache load0.00190.1994240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.055620.0003
Fetch class attribute name0.00130.137150.0003
XML
Image XML parsing0.00100.102720.0005
class_abstraction
Instantiating content class attribute0.00000.003560.0000
General
dbfile0.00070.0770150.0000
String conversion0.00000.000540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs