2

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

Regards,

1 Answer 1

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);
1
  • Now I wonder how to load by module id...
    – miguelmpn
    Sep 11, 2015 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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