Man I swear I've used gk_style before and I didn't get the same results. But that was when I was hacking on a k2 item page. At any rate this time it did the trick and opens up millions of possibilities.
WORKING CODE:
- Code: Select all
<div class="pull_k2_mod">
<?php
$position = 'k2zone1';
$params = array('style'=>'gk_style');
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= $renderer->render($mod, $params);
}
echo $contents;
?>
</div>
$position = 'k2zone1'; has to be changed to the module position you want to load for those that may see this post and want to use the code.
you will also have to use the "clean" suffix in your module to get rid of extra padding.
Thanks to Teitbite we now have a new tool to customize the templates with..