Re: [PHP Template] Recursive hide behavior
| From: | Andrei Zmievski | Date: | Fri, 03 Mar 2000 16:30:07 +0000 |
| Subject: | Re: [PHP Template] Recursive hide behavior | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-302@lists.php.net to get a copy of this message | ||
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. *