To insert joomla module in component , you just need to put this code block in component template file.
Here "moduleposition" is the module position which you will have defined from Joomla Admin Module manager section. Then this will list all modules of that position.
<?php
$modules =& JModuleHelper::getModules('moduleposition');
if(count($modules) > 0){
foreach ($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
}
?>
This comment has been removed by the author.
ReplyDelete