Code: Select all
jimport('joomla.application.module.helper');
$module = JModuleHelper::getModule('modulename');
echo JModuleHelper::renderModule($module);
i even tried
Code: Select all
function plgContentLoadPosition( $position, $style=-2 )
{
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod)
{
$contents .= $renderer->render($mod, $params);
}
return $contents;
}
Code: Select all
plgContentLoadPosition('right');
So nothing is working, I am trying to load the position 'demo' off a custom html module. How can I do this?