Skip to content

Instantly share code, notes, and snippets.

@2dpi
Last active October 7, 2015 06:47
Show Gist options
  • Save 2dpi/3121784 to your computer and use it in GitHub Desktop.
Save 2dpi/3121784 to your computer and use it in GitHub Desktop.
JOOMLA: load module
<?php
// define module by type / name
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModule( 'menu', 'Main' );
$_options = array( 'style' => 'module' );
echo JModuleHelper::renderModule( $module,$_options );
?>
OR USE NO-NUMBER PLUGIN - e.g. {module xxx|module}
look into param overides
http://www.themepartner.com/blog/56/get-joomla-17-plugin-module-component-and-template-parameters/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment