10 Apr 2016

Module positions anywhere

Using this code, you can place a module position inside any php file in joomla:

<?php
$myblurb_modules = &JModuleHelper::getModules( 'my-new-position' );
foreach ($myblurb_modules as $myblurb) {
$_options = array( 'style' => 'xhtml' );
echo JModuleHelper::renderModule( $myblurb, $_options );
}
?>