Re: [PHP Template] dynamic blocks

From: Date: Wed, 16 Feb 2000 14:31:58 +0000
Subject: Re: [PHP Template] dynamic blocks
References: 1  Groups: php.template 
Request: Send a blank email to php-template+get-81@lists.php.net to get a copy of this message
Andrei, try placing this html snippet inside a complex page made of nested tables, and opening it as an html file (as a designer will do) inside Netscape or ie: <table border="0" cellpadding="0" cellspacing="4" width="100%"> <!-- BEGIN dynamic BLOCK: row --> <tr> <td valign="top" width="10%" rowspan="3"><img src="/img/flags/{F_PAESE}.gif" width=36 height=24 alt="{F_PAESE}" border="0"></td> <td valign="top" width="90%" bgcolor="#EEEEEE"><font face="Arial, Helvetica" size="2">{F_NAME}</font></td> </tr> <!-- END dynamic BLOCK: row --> </table> Now try the same thing with the proposed dynblocks definitions: <table border="0" cellpadding="0" cellspacing="4" width="100%"> {dynamic: row} <tr> <td valign="top" width="10%" rowspan="3"><img src="/img/flags/{F_PAESE}.gif" width=36 height=24 alt="{F_PAESE}" border="0"></td> <td valign="top" width="90%" bgcolor="#EEEEEE"><font face="Arial, Helvetica" size="2">{F_NAME}</font></td> </tr> {/dynamic} </table> Where do the {dynamic} declarations get represented on the page? They will be visible, unless you place them inside HTML comments: <!-- {dynamic: row} --> which looks quite similar to the FastTemplate declaration L. -- ---------------------------------------------------- Ludovico Magnocavallo MCP Sumatra Solutions / CTI and Internet Development via V. Bellini 4, 20122 Milano, Italy ludo@sumatrasolutions.com ----------------------------------------------------

« previous php.template (#81) next »