case syntax

Author Message

Marko Žmak

Saturday 17 July 2004 2:01:38 pm

Is it possible to do something like this in EZ:

{case match=1}
{case match=2}
...code...
{/case}

In other words, executing the same code (...code...) for two different matches.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Kåre Køhler Høvik

Monday 19 July 2004 1:45:45 am

http://ez.no/ez_publish/documentation/reference/template_functions/program_flow/switch

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 20 2025 02:28:24
Script start
Timing: Jan 20 2025 02:28:24
Module start 'layout'
Timing: Jan 20 2025 02:28:24
Module start 'content'
Timing: Jan 20 2025 02:28:25
Module end 'content'
Timing: Jan 20 2025 02:28:25
Script end

Main resources:

Total runtime0.7604 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0313152.6094
Module start 'layout' 0.00620.0032 741.640639.4063
Module start 'content' 0.00940.7494 781.0469532.2813
Module end 'content' 0.75880.0015 1,313.32818.2031
Script end 0.7603  1,321.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4569160.0002
Check MTime0.00140.1837160.0001
Mysql Total
Database connection0.00070.098510.0007
Mysqli_queries0.713493.8217540.0132
Looping result0.00060.0742520.0000
Template Total0.722995.120.3614
Template load0.00220.293120.0011
Template processing0.720694.777320.3603
Template load and register function0.00010.014510.0001
states
state_id_array0.00260.340110.0026
state_identifier_array0.00110.143420.0005
Override
Cache load0.00180.2342130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.097220.0004
Fetch class attribute name0.00110.141440.0003
XML
Image XML parsing0.00110.142420.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00110.1431230.0000
String conversion0.00000.001540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs