| Joomla : Templates and Site Design Editing the Template - Review |
For example, a very simple index.php file could look like this:
<body>
<table>
<tr><td><?php mosLoadModules ( 'top' ); ?></td></tr>
<tr>
<td><?php mosLoadModules ( 'left'); ?></td>
<td><?php mosMainBody(); ?></td>
</td>
</table>
</body>
You can see that the HTML is just used to hold the mosLoadModules statements. In the statement mosLoadModules('top'), Joomla will put all of the modules that have been specified as having location "top". (This is set in the Module Manager).
Modules are generally small squares of content like menus or news items. The mosMainBody element is where the main content of the page will be placed.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |