references:joomla.framework:application:jmodulehelper-getmodulesTable of Contents
getModules
Get modules by position Syntaxarray &getModules ( $position )
ExamplesExample $modules = &JModuleHelper::getModules('top'); foreach (array_keys($modules) as $m) { echo JModuleHelper::renderModule($modules[$m]); } The example might render the following HTML snippet (possibly generated by the mod_newsflash module): Example output <table class="contentpaneopen"> <tr> <td valign="top" colspan="2"> Joomla! 1.5 - 'Experience the Freedom'!. It has never been easier to create your own dynamic site. Manage all your content from the best CMS admin interface and in virtually any language you speak. </td> </tr> </table> This is essentially the same as using <jdoc:include type="modules" name="top" style="none" /> in the site template. |


