Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • guillau Friend
    #125212

    Hello

    I work on a new project with the JA_Justica Template. (Joomla! 1.0.13 or 1.5 I don’t know yet)

    I would like to add a column on the left side (and keep the “grey” column but not show it each pages), which will be the same as the right one (white).

    On the first pic you can think everything is fine. But on the second pic I got some trouble 🙁

    I made a lot of modifications :
    “Right” become “Right2” (and I add User 5 before Right2)
    “Left” become “right”
    the new column become “Left”

    # Auto Collapse Divs Functions ##########
    $ja_right2 = mosCountModules( 'right2' ) + mosCountModules( 'user5' );
    $ja_right = mosCountModules( 'right' );
    $ja_left = mosCountModules( 'left' );

    if ( $ja_right2 && $ja_right ) {
    //2 columns on the right
    $divid = '';
    } elseif ( ($ja_right2 && !$ja_right) ) {
    //One column without masscol
    $divid = '-fr';
    } elseif ((!$ja_right2 && $ja_right)) {
    //One column with masscol
    $divid = '-fl';
    } else {
    //No column in right
    $divid = '-f';
    }

    if ( $ja_left && $ja_right )
    // col0 left + col2 right
    $divid= '-lr';

    I add css “ja-col0” for the new left column

    #ja-col0 {
    float: left;
    width: 24.9%;
    margin-right: 6px;
    /* display : block;
    height: 300px; */
    overflow: hidden;
    background: url(../images/corner-white-tl.gif) no-repeat top left #FFFFFF;

    In the Index.php :

    <div id="ja-containerwrap" class="clearfix">

    <!-- BEGIN: COLUMNS -->
    <?php if ($ja_left) { ?>
    <div id="ja-col0"><div class="ja-wrap1"><div class="ja-wrap2"><div class="ja-wrap3 clearfix">
    <?php echo mosLoadModules ( 'left',-2 ); ?>
    </div></div></div></div>
    <?php } ?>
    <!-- END: COLUMNS -->

    <div id="ja-container<?php echo $divid ?>">
    <!-- BEGIN: PATHWAY -->
    <div id="ja-pathwaywrap">
    <div id="ja-pathway">
    <?php mosPathway(); ?>
    </div>
    </div>
    <!-- END: PATHWAY -->

    <!-- BEGIN: CONTENT -->
    <div id="ja-contentwrap"><div class="ja-wrap1"><div class="ja-wrap2 clearfix">
    <div id="ja-content">
    <div class="innerpad">
    <div class="ja-top"><?php if( mosCountModules('top') ) { echo mosLoadModules ( 'top',-2 ); }?></div>
    <?php mosMainBody(); ?>
    <div class="ja-bottom"><?php if( mosCountModules('bottom') ) { echo mosLoadModules ( 'bottom',-2 ); }?></div>
    </div>
    </div>

    <?php if ($ja_right2 || mosCountModules('user5')) { ?>
    <div id="ja-col1">
    <?php if (mosGetParam( $_REQUEST, 'task', null ) == "view") { mosLoadModules('user5', -2); } ?>
    <?php echo mosLoadModules ( 'right2',-2 ); ?>
    </div>
    <?php } ?>

    </div></div></div>
    <!-- END: CONTENT -->
    </div>

    <!-- BEGIN: COLUMNS -->
    <?php if ($ja_right) { ?>
    <div id="ja-col2"><div class="ja-wrap1"><div class="ja-wrap2"><div class="ja-wrap3 clearfix">
    <?php if( mosCountModules('user4') ) { ?>
    <div id="ja-search">
    <?php mosLoadModules('user4', -1); ?>
    </div>
    <div class="clr"></div>
    <?php } ?>
    <?php echo mosLoadModules ( 'right',-2 ); ?>
    </div></div></div></div><br />
    <?php } ?>
    <!-- END: COLUMNS -->
    </div>

    Anyone could help me ?


    1. ja_justica_3col_1
    2. ja_justica_3col_2
    cssyeah Moderator
    #237179

    Hi guillau,
    I will need sometime to track the changes you have made, I ll get back to you soon

    guillau Friend
    #237193

    I could provide all files if needed

    guillau Friend
    #237971

    Any news ?

    cssyeah Moderator
    #238685

    sorry guillau,

    Can you provide your template package ( you changed ). I will fix it.

    guillau Friend
    #238881

    Here is my template.
    If you succes please explain me, I would like to apply it to the J!1.5 template !

    Thank you
    Guillauime


    1. ja_justicia.zip
    guillau Friend
    #241339

    Any news ?

    Sherlock Friend
    #241799

    Hi guillau.
    I’ve downloaded your template, but when i use it, it have some errors, plz check it and then post again. I hope can help you.

    guillau Friend
    #243188

    Thank you for your answer but I decide to keep the template with the right column only ! 😉

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

This topic contains 9 replies, has 3 voices, and was last updated by  guillau 16 years, 8 months ago.

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