Re: [PHP Template] Recursive hide behavior
| From: | Andrei Zmievski | Date: | Wed, 01 Mar 2000 04:26:59 +0000 |
| Subject: | Re: [PHP Template] Recursive hide behavior | ||
| Groups: | php.template | ||
| Request: | Send a blank email to php-template+get-267@lists.php.net to get a copy of this message | ||
At 04:08 PM 2/29/00 -0800, Dan Libby wrote:
>Well, suppose section 2 has autohide="all", and section 1 has
>autohide="sections". Then section 1 will be hidden if any sections contained
>within are hidden. Same if section 1 has autohide="all". But not if it is
>autohide="vars" or "none".
>
>Finally, yes it might be possible to explicitly list which vals/sections to
>hide
>for, and maybe that is the best/simplest approach, and we should forget about
>the rest.
Well, simplest is also at the same time more complicated from the engine
standpoint. :)
I can see several possible things you'd want to do:
1. Hide if any variable is undefined.
2. Hide if any contained section is hidden.
3. Hide if a specific variable is undefined.
4. Hide if a specific section is hidden.
Or a combination of course. :) The tough thing is to figure out a good and
easy to remember syntax for this and what to use as the defaul behavior.
Any comments?
-Andrei