madseason
4/17/2018 - 4:56 PM

How to display module in component area

// To include a modul position in your component view and to load modules there, you just have to add

echo JHtml::_('content.prepare', '{loadposition yourmodulposition}');

// to the view

/* The second string with the load position short tag can be replaced with a var which contains more html if you need that. You don't have to write that line for every new modul position*/

$outputModules = '<strong>Some Html</strong>'
                 '{loadposition yourmodulposition1}'
                 .'{loadposition yourmodulposition2}';


echo JHtml::_('content.prepare', $outputModules);