Re: [PHP Template] Recursive hide behavior

[email protected] (Andrei Zmievski) Fri, 3 Mar 2000 10:27:55 -0600
Newsgroups php.template
Message-ID <[email protected]>
On Fri, 03 Mar 2000, Monte Ohrt wrote:
> Here is an example. I threw in the {{altsection}} tag just to spur some
> discussion :-)
> 
> 
> <TABLE>
>         <TR>
>         {{section sec1 autohide=all}}
>                 <TD>Category: {{ $category }}</TD>
>                 {{section sec2 autohide=any}}
> 			{{* this section hides if headline OR date are emtpy *}}
>                         <TD>
>                         Article: {{ $article_headline }}
>                         Date: {{ $article_date }}
>                         </TD>
>                 {{altsection}}
> 			{{* this displays if sec2 was hidden *}}
>                         <TD>
>                         No articles to show
>                         </TD>
>                 {{/section}}
>         {{/section sec1}}
>         </TR>
> </TABLE>

Yes, having a default (alternative?) section text is an idea that I've
had for a while. I think it'd be pretty useful for all kinds of stuff.

-Andrei

"Computers are useless. They can only give you answers."
                               --Pablo Picasso