Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • joomboom Friend
    #133278

    Hi,

    I am trying to get Ja_News module to appear in 3 coulmns, where the left-most column has to be bigger than the other two. How can I achieve that? Right now they are all the same width, no matter how many columns I select.

    thanks a lot for the help!

    Joomla 1.0.15

    Sherlock Friend
    #270561

    Hi joomboom !
    It is posible. but you must hack to code of ja news , Please open blog.php file in modules/ja_news/tmpl folder , find following code section at about line 30 :


    <?php
    $k = 0;
    for ($z = 0; $z < $cols; $z ++) :
    $cls = $cols==1?'full':($z==0?'left':($z==$cols-1?'right':'center'));
    ?>
    <div class="jazin-<?php echo $cls;?>" style="width:<?php echo $width;?>%">
    <?php for ($y = 0; $y < ($news / $cols) && $k<$news; $y ++) :
    $params->set('blog_theme', $themes[$k]);
    $rows = $contents[$k];
    if($catid) {
    include('blog_item.php');
    }
    $k++;
    endfor; ?>
    </div>
    <?php endfor; ?>

    red text is code for width of columns . if want change width of first columns , you can use code below :

    <?php
    if ($z == 0 ) {
    $width= 50;
    }
    ?>
    <div class="jazin-<?php echo $cls;?>" style="width:<?php echo $width;?>%">

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Sherlock 16 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum