Re: [PHP Template] Recursive hide behavior

From: Date: Tue, 29 Feb 2000 14:21:50 +0000
Subject: Re: [PHP Template] Recursive hide behavior
References: 1 2  Groups: php.template 
Request: Send a blank email to php-template+get-245@lists.php.net to get a copy of this message
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. *

« previous php.template (#245) next »