Re: [PHP Template] Recursive hide behavior

[email protected] Wed, 1 Mar 2000 15:14:56 +1000 (EST)
Newsgroups php.template
Message-ID <[email protected]>
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, [email protected] 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. *
>