Help on {section show=$use_template_search}

Author Message

Softriva .com

Sunday 20 August 2006 2:19:37 am

Can someone explain this to me and direct me to the correction documentation page?

{section show=$use_template_search}
.
.
.
{/section}

Is {section} still valid or is it deprecated?

What does this mean

show=$....

 

Pascal von Büren

Sunday 20 August 2006 2:55:02 am

Hi,

your snippet is basically the same as:

{if $use_template_search}
...
{/if}

{section} is in fact deprecated, so you should use the code above (allthough it still works).

The meaning of this snippet is simply: execute this code only, if the variable $use_template_seach is set (in this case true()).

Marcin Drozd

Monday 21 August 2006 5:43:04 am

Hi
U can see the old documentation on http://ez.no/products/ez_publish/documentation/reference/template_functions/program_flow/section

http://ez-publish.pl

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 03:24:26
Script start
Timing: Jan 19 2025 03:24:26
Module start 'layout'
Timing: Jan 19 2025 03:24:26
Module start 'content'
Timing: Jan 19 2025 03:24:27
Module end 'content'
Timing: Jan 19 2025 03:24:27
Script end

Main resources:

Total runtime1.0804 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.0059 589.2891152.6406
Module start 'layout' 0.00590.0034 741.929739.4766
Module start 'content' 0.00921.0697 781.4063565.5781
Module end 'content' 1.07900.0014 1,346.98448.1250
Script end 1.0804  1,355.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3098160.0002
Check MTime0.00140.1310160.0001
Mysql Total
Database connection0.00080.070710.0008
Mysqli_queries1.025794.9351590.0174
Looping result0.00060.0532570.0000
Template Total1.047597.020.5237
Template load0.00200.183020.0010
Template processing1.045596.767720.5227
Template load and register function0.00020.014510.0002
states
state_id_array0.00140.131510.0014
state_identifier_array0.00200.181820.0010
Override
Cache load0.00170.1536190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.094530.0003
Fetch class attribute name0.00130.120940.0003
XML
Image XML parsing0.00790.732630.0026
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00690.6412150.0005
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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs