Re: [PHP Template] Recursive hide behavior

[email protected] (Andrei Zmievski) Tue, 29 Feb 2000 22:26:59 -0600
Newsgroups php.template
Message-ID <[email protected]>
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