Re: block functions

From: Date: Thu, 21 Mar 2002 18:04:21 +0000
Subject: Re: block functions
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3226@lists.php.net to get a copy of this message
You're telling me I cant pass to Block Function the subtags (for my example) bgcolor, color and width? Neither {$smarty.get.name} inside? Thinking a better example should be : page.php?name=ROBERTO+BERTO ---------------------------------------- {block name="highlight" bgcolor="#FF0000" color="#FFFFF" width="100%" asign="block_first"} {$smarty.get.name} {/block} {$block_first} ---------------------------------------- Atenciosamente, ---------------------------------------- Roberto Bertó Under Development http://www.under.com.br Tel: 51 32270599 Cel: 51 91169628 ----- Original Message ----- From: "Andrei Zmievski" <andrei@ispi.net> To: "Roberto Berto" <roberto@berto.net> Cc: <smarty@lists.ispi.net> Sent: Thursday, March 21, 2002 3:00 PM Subject: Re: [smarty] Re: block functions > On Thu, 21 Mar 2002, Roberto Berto wrote: > > I guess that we can have two results from > > > > page.php?name=ROBERTO+BERTO > > ---------------------------------------- > > {highlight bgcolor="#FF0000" color="#FFFFF" width="100%"} > > {$smarty.get.name} > > {/highlight} > > ---------------------------------------- > > > > > > The first is, and in this result, Block Precedence is lower than other > > Smarty Plugins/Functions and Variables: > > --------------------------------------------- > > <table bgcolor=#FF0000 width=100%> > > <tr><td><div align=center><font color=#FFFFFF>ROBERTO > > BERTO</font></div></tr></tr></table> > > --------------------------------------------- > > > > > > Second result is: > > --------------------------------------------- > > <table bgcolor=#FF0000 width=100%> > > <tr><td><div align=center><font > > > > color=#FFFFFF>{smarty.get.name}</font></div></tr></tr></table> > > --------------------------------------------- > > > > > > At first, the Block Function is a PostFilter Plugin that you easly can > > create. > > No, the block functions will only receive the text not the smarty tags. > > -Andrei > > Work is of two kinds: first, altering the position of matter at or near > the earth's surface relatively to other matter; second, telling other people > to do so. The first kind is unpleasant and ill-paid, the second is pleasant > and highly paid. -- Bertrand Russell > >

« previous php.smarty.general (#3226) next »