BC Tech : Free Tutorials and More Advertisement
Main arrow News / Articles arrow Add Static Content Above Dynamic Text
Tuesday, 06 January 2009
 
 
Add Static Content Above Dynamic Text Print E-mail
Tutorials / FAQs


There are a few ways to create static content above dynamic content in Joomla.  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:

  1. <?php mosLoadModules ('home' ); ?>
  2. <?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 website" module should now only appear on the homepage of your website.
 
< Prev   Next >
Google
 
Web benconley.net
 
Top! Top!