1. We have lost 10 days of user generated data. We are working on it, please have patience.


    We will have more updates for you coming up in next few hours. [ View Now ]

User Tag List

+ Reply to Thread
 
Results 1 to 3 of 3
  1. #1
    Licensed Member
    Joomla Template Club Member - 1 Year

    Join Date
    Jun 2011
    Location
    Bhilai, India
    Posts
    10
    Points
    39.36
    Downloads
    49
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    5
    Thanked 1 Time in 1 Post

    Module Titles are not showing on the new module positions I created

    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:

    // 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>
    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.

  2. #2

     Expired

    Join Date
    Feb 2011
    Posts
    4,842
    Points
    10,973.10
    Downloads
    2959
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Thanks
    168
    Thanked 1,186 Times in 1,089 Posts
    You try to replace your code
    Code:
    <block name="content-mass-top" type="twocolumn" >content-mass-top1,content-mass-top2 </block>
    with
    Code:
    <block name="content-mass-top" type="spotlight" style="xhtml">content-mass-top1,content-mass-top2 </block>

  3. The Following User Says Thank You to khoand For This Useful Post:

    cifar24 (04-23-2012)

  4. #3
    Licensed Member
    Joomla Template Club Member - 1 Year

    Join Date
    Jun 2011
    Location
    Bhilai, India
    Posts
    10
    Points
    39.36
    Downloads
    49
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    5
    Thanked 1 Time in 1 Post
    That works. I just have to do some minor CSS changes to make it look like how I want. Thanks Khoand.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Stop working on Weekend!X

If your Boss broke your Joomla template or extension and ask you to fix it today. Here is the immediate solution. Then leave your request on the right forum, we will be helping after the Weekend Happy hours
Our Happy Hours: Friday 18:00 - Monday 9:00

No working during happy hours. Keep calm and don't break anything.

-->

Your vote matters!X

Vote for Best Support Guy