Syntax
The external page layout is constituted of HTML code and simple macro language to define areas (containers) for SiteSupra blocks.
This implementation allows splitting HTML and PHP coding. Below is an example of defining a block container:
<table>
<tr>
<td><!--{$block(block_system_name)}--></td>
</tr>
</table>
|
The macro <!--{$block(block_system_name)}--> in the example above is replaced with a block
named block_system_name. See Adding Blocks to a Template for more details.
The example below gives you an idea on inserting place holders for the blocks if the blocks haven't been developed yet.
The HTML code inside the <!--{$block(block_system_name)}--> and <!--{$block()}-->
will be omitted as soon as you assign block_system_name to a block on the webpage.
<table>
<tr>
<td>
<!--{$block(block_system_name)}-->
Temporary HTML code...
<!--{$block()}-->
</td>
</tr>
</table>
|