-
AuthorPosts
-
fguyon Friend
fguyon
- Join date:
- March 2011
- Posts:
- 93
- Downloads:
- 150
- Uploads:
- 14
- Thanks:
- 23
- Thanked:
- 19 times in 1 posts
July 24, 2011 at 7:30 am #166652Hi,
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 regardschavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 25, 2011 at 10:22 am #402900It 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 Friendfguyon
- Join date:
- March 2011
- Posts:
- 93
- Downloads:
- 150
- Uploads:
- 14
- Thanks:
- 23
- Thanked:
- 19 times in 1 posts
July 25, 2011 at 11:37 am #402913I’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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 25, 2011 at 12:15 pm #402920Try 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
1 user says Thank You to chavan for this useful post
fguyon Friendfguyon
- Join date:
- March 2011
- Posts:
- 93
- Downloads:
- 150
- Uploads:
- 14
- Thanks:
- 23
- Thanked:
- 19 times in 1 posts
July 26, 2011 at 3:09 pm #403139Nearly OK, a very good base to work on !!
ThanxPhill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
July 26, 2011 at 3:23 pm #403142We already have the facility to do this built into the framework. Take a look through the wiki in particular this section
<blockquote>
Custom widthExpression: <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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 26, 2011 at 5:15 pm #403164Phill,
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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
July 26, 2011 at 6:11 pm #403168No, 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.
AuthorPostsViewing 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
User x positions different widths
Viewing 8 posts - 1 through 8 (of 8 total)