Re: [PHP Template] Recursive hide behavior
[email protected] Tue, 29 Feb 2000 16:17:38 +1000 (EST)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
looks like dan beat me.
* autohide = yes/no
specifies whether this section is hidden if it contains a variable
without a value
is the current definition. reading it literaly, sec1 would be hidden
as well because it does in fact contact a variable without a value.
(it just happens to be in another (nested?) section).
i think there should be options to control the tree traversal (say that
5 times fast 8^) ) for hierachial hiding (2 uses of alliteration in one
sentence, my god!) of sections. the finer grained the better, but not so
as to impose a performance hit when not in use.
8^)
avi
On Mon, 28 Feb 2000, Dan Libby wrote:
> 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]
>
>
> --
> 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]
>
>