{if $pagerootdepth|not}

Author Message

Guilherme Longo

Thursday 30 August 2007 3:00:26 am

{if $pagerootdepth|not}
{set $pagerootdepth = 1}
{/if}

Somebody know what mean {if $pagerootdepth|not}

Is something like if pagerootdepth is not setted, do the block??

André R.

Thursday 30 August 2007 4:59:55 am

it will equal to this in php:

if ( !$pagerootdepth )
{
   $pagerootdepth = 1;
}

so the block runs if $pagerootdepth is false, 0 or not set ( but will throw a warning if it is not set, so it should have been set.)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 10:39:37
Script start
Timing: Jan 18 2025 10:39:37
Module start 'layout'
Timing: Jan 18 2025 10:39:37
Module start 'content'
Timing: Jan 18 2025 10:39:37
Module end 'content'
Timing: Jan 18 2025 10:39:37
Script end

Main resources:

Total runtime0.9178 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.0063 589.0391152.6250
Module start 'layout' 0.00630.0036 741.664139.4453
Module start 'content' 0.00990.9057 781.1094523.5156
Module end 'content' 0.91570.0021 1,304.62508.1719
Script end 0.9178  1,312.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3903160.0002
Check MTime0.00150.1619160.0001
Mysql Total
Database connection0.00120.125610.0012
Mysqli_queries0.870994.8840540.0161
Looping result0.00060.0603520.0000
Template Total0.880095.920.4400
Template load0.00210.232020.0011
Template processing0.877995.647720.4389
Template load and register function0.00010.014910.0001
states
state_id_array0.00140.154610.0014
state_identifier_array0.00100.109220.0005
Override
Cache load0.00170.1831130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.112520.0005
Fetch class attribute name0.00140.151930.0005
XML
Image XML parsing0.00120.126220.0006
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00090.0947170.0001
String conversion0.00000.000840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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
1content/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
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: 7

Time used to render debug report: 0.0002 secs