Hello,
I want to check module positions for a sidebar in k2 item view. It is still an old 1.5.26 site since the owner thinks it works fine.
What did I try:
So far I tired all code snipets I found in the forum. This means all variations of
/* get all Modules assigned to Position 'latest' */
$latestItem = &JModuleHelper::getModules( 'latest' );
/* loop through the array and render their output */
foreach ($latestItem as $latest) {
$_options = array( 'style' => 'xhtml' );
echo JModuleHelper::renderModule($latest,$_options);
}
I observe two things: First I am only able to call types of modules, not positions. E.g. when I call mod_k2_tools, it is displayed, if I call 'left' - no chance.
Second I could not call mod_custom using the same code.
What should be the result?
How should the code be altered to be able to check for module positions virtually design (=not a default template position) for the sidebar in question. Is it possible to call any type of Joomla module, not only k2 modules?
Thanks a lot