Elxis CMS Forum

Support => Elxis 2008 developers guide => Topic started by: datahell on May 04, 2007, 20:31:02

Title: Load single module by name
Post 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.

Code: (php) [Select]
/**
* @ 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

Code: (php) [Select]
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.