Re: [PHP Template] Recursive hide behavior

From: Date: Wed, 01 Mar 2000 05:14:56 +0000
Subject: Re: [PHP Template] Recursive hide behavior
References: 1  Groups: php.template 
Request: Send a blank email to php-template+get-268@lists.php.net to get a copy of this message
ok, here it is. i know andrei and dan have a little thread going atm, so maybe this could fit in some how. please critisize if necessary 8^) first, a new attribute for "section": ahic (auto hide ignore child, i know, the name needs work). controls whether or not autohide is activated if it applies to a nested section. default is yes. the example: {{section sec1}} Category: {{ $category }} {{section sec2 ahic=off }} Article: {{ $article_headline }} {{section sec3}} Body: {{ $article_body }} {{/section sec3}} {{/section sec2}} {{/section sec1}} quick notes: any section has autohide and ahic set to true/yes/on by default. therefore, section autohide ahic sec1 yes yes sec2 yes no sec3 yes yes scenario: $article_body is empty result: * sec3 is hidden. * sec2 is hidden (ahic=no). * sec1 is displayed (ahic=yes). did that make sense? avi On Tue, 29 Feb 2000, Andrei Zmievski wrote: > On Tue, 29 Feb 2000, lists@itsg.net.au wrote: > > 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. > > Any ideas on how you would control that traversal? > > -Andrei > * The great thing about standards is that there are so many to choose from. * >

« previous php.template (#268) next »