Section hiding and includes
[email protected] (Andrei Zmievski) Mon, 13 Mar 2000 16:02:41 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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. *