2

I was wondering how can we load a module inside a module, in Joomla 3 programatically.

Regards,

3

After some digging I found this code. Most pages I visited are using outdated code, here is the one that worked for me.

$doc      = JFactory::getDocument();
$renderer = $doc->loadRenderer('modules');
$position = 'moduleposition';
$options  = array('style' => 'raw');
echo $renderer->render($position, $options, null);
  • Now I wonder how to load by module id... – miguelmpn Sep 11 '15 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.