Re: [PHP Template] Recursive hide behavior
| From: | Dan Libby | Date: | Tue, 29 Feb 2000 05:22:12 +0000 |
| Subject: | Re: [PHP Template] Recursive hide behavior | ||
| References: | 1 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-241@lists.php.net to get a copy of this message | ||
My feeling is that it should not hide the parent by default. However, we
could do something like change the allowed values of autohide to "all |
none | vars | sections". This gives the developer pretty fine grained
control at every level in the hierarchy. This also opens the door to
autohide="$varname", which means only autohide for that particular var.
Dunno if we wanna get that crazy or not. If so, what to do about multiple
vars?
-dan
Andrei Zmievski wrote:
> Another design question:
>
> Let's say you have the following situation:
>
> {{section sec1 autohide="on"}}
> Category: {{ $category }}
> {{section sec2 autohide="on"}}
> Article: {{ $article_headline }}
> {{/section sec2}}
> {{/section sec1}}
>
> If the $article_headline variable has no value, section 'sec2' will be
> hidden. The question is, should section 'sec1' be hidden as well?
> Intuitively, for this particular example, it seems that it should be.
>
> However, I'm not sure how far up the section chain it should propagate.
> Any ideas on this?
>
> -Andrei
>
> "Claiming Java is easier than C++ is like
> saying that K2 is shorter than Everest."
> -- Larry O'Brien (editor, Software Development)
>
> --
> PHP Template Engine Mailing List
> Current engine specification can be found at:
> http://va.php.net/~andrei/tpl-engine-spec.txt
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net