Re: [PHP Template] Recursive hide behavior

[email protected] (Dan Libby) Mon, 28 Feb 2000 21:22:12 -0800
Newsgroups php.template
Message-ID <[email protected]>
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: [email protected]