Re: [PHP Template] Recursive hide behavior
[email protected] (Andrei Zmievski) Tue, 29 Feb 2000 08:21:50 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
How would you hide sec1 then, manually?
If we go the extended autohide route, then we should be able to do
something like:
autohide=sec2,$category
which means hide if sec2 is hidden or $category has no value.
Now it's totally crazy. :)
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}}
-Andrei
* The best source is the source code. *