JOOMLA LIBRO 2

Page 127

10 Make your own template The key functions are: mosShowHead <?php mosShowHead(); ?> This function assembles various head tags including the title tag and several meta tags. mosShowPathway <?php mosPathWay(); ?> This function inserts an automatic breadcrumb trail, or pathway element mosMainBody <?php mosMainBody(); ?> This function displays the main text body, articles and the output of other components as determined by the value of option in the URL. mosLoadModules <?php mosLoadModules($position_name [,$style])?> This is a very exible function which displays the output from all modules that are assigned to the position_name position for the current page. The "style" argument allows control over the way in which the (X)HTML is output, as follows: 0 = (default display) Modules are displayed in a column. See example below: <!-- Begin : Individual module --> <table cellpadding="0" cellspacing="0" class="moduletable[suffix]"> <tr> <th valign="top">Module Title</th> </tr> <tr> <td> Module output </td> </tr> </table> <!-- End : Individual module -->

-1 = Modules are displayed as raw output and without titles. See example below: Module 1 Output Module 2 Output Module 3 Output

-2 = Modules are displayed in X-Joomla! format, i.e. without tables, using a single CSS box <div>...</div>. See example below: <!-- Begin : Individual module --> <div class="moduletable[suffix]"> <h3>Module Title</h3> Module output </div> <!-- End : Individual module -->

126


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.