Joomla - Module: Trying Alternative Layout (Part 7)Tag: joomla, cms Category:post: 22 Nov 2007 read: 2,368 After trying template, in last tutorial, we will try to make different layout. It is proof that more efficient if we use this scenario. We can change layout without rewrite many code. Example 1Create "default.php" within joomla/modules/mod_hello/tmpl. Enter following code:
And then, modify "mod_hello.php" within joomla/modules/mod_hello. This modify will be implemented for all next example.
Example 2Now, we want to add bullet in the list. So, create file named "bulleted.php" within joomla/modules/mod_hello/tmpl. Enter following code:
If we want to choose this layout, we just modify mod_hello become:
Example 3Now, we try show few text. Modify "_hello.php" within joomla/modules/mod_hello/tmpl.
|
| | Give Your Opinion | Recommend |
|

