Upgrade Joomla 1.5 to Joomla 1.6

The positions of publication -Part 10

The "mosLoadModules()" displays the template in all the modules that are assigned to a given position. The syntax of this function is:

mosLoadModules ( $nom_position [, $style] )

"$ nom_position" is the name of the position and the "$ style", which is optional, defines the style of display:

  • $ style = 0: This is the default. The modules are displayed in a column table. One module per cell.
  • $ style = 1: The modules are published horizontally. Each module is displayed in a cell of a table with one line.
  • $ style = -1: The modules are published horizontally in plaintext and without titles.
  • $ style = -2: The modules are published in the format of X-Joomla!. The title and content of each module are included in a tag <div>; title is framed by a tag <h3>.
  • $ style = -3: The modules are published in a format that allows, for example, stretchable rounded corners. Each module is displayed in blocks of nesting, sort of Russian dolls.

For the location of MainBody which is the main body, it has a peculiarity. For implantation in the template, we use the function "mosMainBody ()". The PHP script used is as follows: <?Php mosMainBody();?>

In summary, for your template to place the code between the tags and <body> </ body> in the index.php file is the following:

<div id= "conteneur">

<div id="haut"><?php mosLoadModules ( 'banner' ); ?></div>
<div id="gauche"><?php mosLoadModules ( 'left' ); ?></div>
<div id="centre"><?php mosMainBody(); ?></div>
<div id="droit"><?php mosLoadModules ( 'right' ); ?></div>
<div id="bas"><?php mosLoadModules ( 'bottom' ); ?></div>

</div>

You notice that in the php script,

 <?php

; ?>

It was inserted in the "mosLoadModules()" and "mosMainBody()" appropriate.

At the end of this chapter, you learned the different elements of a template and you have managed to design yours, that is, until now, in its embryonic phase.

In the next chapter "Personalization Template, you move carefully in the approval of your template.

Comments

Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
button_logo_portfolio
button_quote
button_testimonials

Subscribe Tutorials

Enter your email address:

Paypal Donation

Enter Amount:

Subscribe Joomla Tutorials Newsletter

Name:

Email:


Enter your email address: