test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • fguyon Friend
    #166652

    Hi,
    I’d like to set User 1 position to 25%, User 2 to 25%, and User 3 to 50% (instead of equal widths 1/3, 1/3, 1/3 if published) !!
    Didn’t find in previous threads !! Sorry ! Does anyone know how to ?? Thanx and regards

    chavan Friend
    #402900

    It has 5 position say user1, user2, user3, user4, user5

    I can suggest you, Before please confirm what to do with the user4 and user 5 position. shall we negotiate these position for now ans set the width for user1, user3 and user 3.

    Best way is to post your site Url

    fguyon Friend
    #402913

    I’ll not use user4 and user5 positions.. If such, I’ll paste the original copy of the modified file of the template in the folder

    the url : http://www.teamhsn.org (but at this time I disabled the module I want in user3)

    Thanx

    chavan Friend
    #402920

    Try adding this code in the template.css file in this path: /templates/ja_teline_iv/css/template.css


    #ja-topsl2 .ja-box-left {
    width: 25% !important;

    }

    #ja-topsl2 .ja-box-center {
    width: 25% !important;

    }

    #ja-topsl2 .ja-box-right {
    right: 10px;
    width: 48% !important;

    }

    Note: If you Find my Post useful please click on the Thanks Icon

    fguyon Friend
    #403139

    Nearly OK, a very good base to work on !!
    Thanx

    Phill Moderator
    #403142

    We already have the facility to do this built into the framework. Take a look through the wiki in particular this section

    <blockquote>
    Custom width

    Expression: <block name=”top-spotlight” type=”spotlight” special=”left” specialwidth=”25″>user1,user2,user3,user4,user5</block>
    Purpose: – this will override the default 20% width for a single position within the layout, it could be the one in the right side, it could be the one in the left side, but let’s examine these parameters closer:

    • special=”left” – this defines where is the module we want to use the custom width: left or right
    • specialwidth=”25″ – this defines the new width value for this module within the spotlight block.

    </blockquote>

    http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#Custom_column_width

    chavan Friend
    #403164

    Phill,

    specialwidth will set equal width to all the positions like user1,user2,user3,user4,user5. But the fguyon is asking for only user1,user2 to have a width of 25% and the user3 with 50%. By negotiating the positions user4, user5.

    If there any options for us to change the code below to attain this. Please advice

    <block name="top-spotlight" type="spotlight" special="left" specialwidth="25">user1,user2,user3,user4,user5</block>

    Phill Moderator
    #403168

    No, specialwidth allows you to specify just one module left or right at a specific width with the rest being the remainder of the width so if you use the code below you should get what was being asked for.

    <block name="topsl2" type="spotlight" specialwidth="50">user1,user2,user3,user4,user5</block>

    It is limited to only the left or right positions as far as I know which your method would not be.

    Here is a screenshot with the above applied.


    1. Specialwidth
Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  Phill 13 years, 4 months ago.

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