How to permanently display a module inside a Component in Joomla!

H

In the template or any other place in the Joomla! Components code where you wish to display the module permanently place the following PHP code

jimport('joomla.application.module.helper'); //Importing the Module helper
$module = & JModuleHelper::getModule('mod_name');
echo JModuleHelper::renderModule($module); //rendering the module

Replace¬†mod_name¬†with your module’s name

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me