Support > Elxis 2008 developers guide

Load single module by name

(1/1)

datahell:
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) ---/**
* @ 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 )
--- End code ---

Examples of usage


--- Code: (php) ---elxLoadModule('mod_banners');

elxLoadModule('mod_stats', -1);

elxLoadModule('mod_language', -2);
--- End code ---

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.

Navigation

[0] Message Index

Go to full version