Re: [PHP Template] Recursive hide behavior
[email protected] (Andrei Zmievski) Fri, 3 Mar 2000 10:30:07 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 03 Mar 2000, Monte Ohrt wrote: > We already have an ambiguity problem. What if you want to hide when all > variables are empty, or any section is empty? Any section is hidden, you mean. > We could split this up into two separate attributes like so: > > hideonvars=none > hideonvars=all > hideonvars=any > > hideonsections=none > hideonsections=all > hideonsections=any > > > Are these attribute names ok? Anyways, this idea keeps the sytax simple > and consistant. > > The default might be (the most commonly wanted behavior): > > hideonvars=any > hideonsections=all Splitting into two attributes (while a little more info now) makes it more intuitive and flexible. And with good defaults, like proposed above, you wouldn't even need to use these most of the time. -Andrei * Life may be expensive, but it includes an annual free trip around the sun. *