Home arrow Site Layout / CSS arrow General arrow Creating static content above dynamic  
Main Menu
Home
Site News
Search
Contact Us
About Us
Mambo Notes
Administration
Installation
Hacks
Site Layout / CSS
Other
Website Stories
Mambo 101
Mambo Links
Author Login
Username

Password

Remember me
Password Reminder
Creating static content above dynamic Print E-mail
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 )
Bookmark Us
 
 
Popular
Latest Content
Content Copyright 2004 - 2005 KABAM, Inc. All Rights Reserved.

Mambo Copyright 2000 - 2004 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.