Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!
https://www.seblod.com
GNU General Public License v2.0
129 stars 55 forks source link

Optimize field joomla_module #264

Open denysdesign opened 8 years ago

denysdesign commented 8 years ago

Hi, folk!

Field joomla_module based in joomla plugin loadmodule and use content prepare.

The proposal to use joomla native render modules. This method optimize the display of the module and pull all the content plugins.

For example:

<?php
$new_positions = JModuleHelper::getModules('right');

if($new_positions) 
{
     foreach($new_positions as $new_position) {
          echo JModuleHelper::renderModule($new_position, array('style'=>'html'));
     }
}
?>
klas commented 8 years ago

Code improvement proposal.