|
Creating static content above dynamic |
|
|
There are a few ways to create static content above dynamic content in
Mambo. This is the method that I have
used on several of my sites to create a "Welcome to my website"
message. This same method can be applied anywhere you need static
content to appear above (or below) dynamically generated content.
1. Create new module with your welcome message in it (Modules -> Site Modules -> New).
2. Create a new module position for your welcome message (this is optional). I called mine "Home".
3. Modify your template to include your Module Position just before the mosMainBody fuinction as follows:
<?php mosLoadModules ('home' ); ?>
<?php mosMainBody(); ?>
4. Set the module position of your "Welcome to my website" module to "home".
5. Change the display loction to only display your "Welcome to my website" module when the "mainmenu/Home" link is active.
Your new "Welcome to my sebsite" module should now only appear on the homepage of your website.
|
|
Last Updated ( Tuesday, 18 January 2005 )
|