Re: [PHP Template] Recursive hide behavior

From: Date: Fri, 03 Mar 2000 16:27:55 +0000
Subject: Re: [PHP Template] Recursive hide behavior
References: 1 2 3 4 5 6 7  Groups: php.template 
Request: Send a blank email to php-template+get-301@lists.php.net to get a copy of this message
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

« previous php.template (#301) next »