Section hiding and includes

From: Date: Mon, 13 Mar 2000 22:02:41 +0000
Subject: Section hiding and includes
Groups: php.template 
Request: Send a blank email to php-template+get-309@lists.php.net to get a copy of this message
Here's a situation: template1.tpl has: { section sec1 hideonsections=any } ... { include template2.tpl } ... { /section } template2.tpl has: { section sec2 hideonvars=any } ... @var1 ... { /section } Let's say @var1 has no values. This means that 'sec2' gets hidden automatically. Now, my question is, should 'sec1' be hidden as well since itis set to hide if any child section is hidden? I guess it depends on how you look at it. I can't really come up with a situation where it'd be useful to depend on the sections you're including inside another section via { include ... }. What do you think? -Andrei * Use the source, Luke. *

« previous php.template (#309) next »