Озадачился вопросом вывода позиции модуля в шаблоне компонента. JDoc там естественно не работает. Нашел на оф. сайте joomla такое решение:
// extra code to make this work
$style = -2; // set the style
$position = "left"; // set the position of the modules to be loaded
// end of extra code
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style'=>$style);
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
}
// more extra code
echo $contents; // do something with the module output
Проверено, работает.
Автор - Kristian (K.P) Pettersen
Joomla! i Norge - http://www.joomlainorge.no
Спасибо тебе, добрый норвежский друг.