joomla administrator templates |
|
At this time the model for Administrator Templates isstill being formed. It is intended that both the Site andAdministrator templating systems will merge intoa common API in a future version. However, some notes areprovided here for reference.
Module SupportYou may include modules in your Administratortemplates directly with mosLoadAdminModule or ingroups, like for the site templates, withmosLoadAdminModules. For example <table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="menubackgr"><?php mosLoadAdminModule( 'fullmenu' );?></td> <td class="menubackgr" align="right"> <div id="wrapper1"> <?php mosLoadAdminModules( 'header', 2 );?> </div> </td> <td class="menubackgr" align="right"> <a href="index2.php?option=logout" style="color: #333333; font-weight: bold">Logout</a> <strong><?php echo $my->username;?> </td> </tr> </table> The mosLoadAdminModule function takes one argument,the name of the module less the "mod_" prefix. Thefirst cell of the example table loads the Full Menumodule (that is, mod_fullmenu). In the second table cell, all the modules assignedto the "header" position are loaded. The secondargument is a style setting: 0 = just output sequentially what the modulesoutput |