Re: [PHP Template] dynamic blocks
[email protected] (Ludovico Magnocavallo)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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
[email protected]
----------------------------------------------------