{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.