Elxis CMS Forum
Support => Elxis 2008 developers guide => Topic started by: datahell on May 04, 2007, 20:31:02
-
Elxis 2008 allows you to load a single module regardless it's position on the template.
To load a single module use the function elxLoadModule.
/**
* @ name: the module name (i.e. mod_banners)
* @ style: module style, 0=normal/table, 1=horizontal, -1=no wrapper, -2=div surrounded (recommended), -3=rounded corners
*/
function elxLoadModule( $name='', $style=0 )
Examples of usage
elxLoadModule('mod_banners');
elxLoadModule('mod_stats', -1);
elxLoadModule('mod_language', -2);
Notice: Some third party modules may produce errors if they are included two or more times in the same page. This feature does not exist in prior than 2008 Elxis versions.