Re: block functions
| From: | Andrei Zmievski | Date: | Thu, 21 Mar 2002 18:00:13 +0000 |
| Subject: | Re: block functions | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3225@lists.php.net to get a copy of this message | ||
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