I want Content-Mass-Top module to display a couple of my modules in side-by-side layout. So I duplicated the default layout and modified the new layout file to include to positions as follows:
<block name=”content-mass-top”>content-mass-top1,content-mass-top2 </block>
Placing the modules to positions content-mass-top1 and content-mass-top2 did not show my modules side by side.
So I decided to create a new block named: twocolumn and changed the above text to:
<block name=”content-mass-top” type=”twocolumn” >content-mass-top1,content-mass-top2 </block>
Then I added a twocolumn.php under the blocks folder of my template with the following content:
<blockquote>// No direct access
defined(‘_JEXEC’) or die;
?>
<div class=”twocolumn clearfix”>
<?php if($this->countModules(‘content-mass-top1’)) : ?>
<div id=”ja-content-mass-top1″>
<jdoc:include type=”modules” name=”content-mass-top1″ />
</div>
<?php endif; ?>
<?php if($this->countModules(‘content-mass-top2’)) : ?>
<div id=”ja-content-mass-top2″>
<jdoc:include type=”modules” name=”content-mass-top2″ />
</div>
<?php endif; ?>
</div>
</blockquote>
After adding some CSS, now my modules show as desired. But there is one problem:
The module titles are not shown.
Where do I need to make change to ensure the module titles are displayed.
I have an ugly work around for this issue. In my work around I hardcode the module titles inside the new twocolumn block.
Please help.