-
AuthorPosts
-
davikos Friend
davikos
- Join date:
- December 2007
- Posts:
- 52
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 2 times in 1 posts
October 18, 2010 at 6:43 pm #155399Hi,
i am trying to find the php file that controls the width of positions “user1” & “user2”.
i will put on these positions two modules with standard width user1=70% and user2=30%
My problem is that i can’t find the correct file!!!? ? ??
Plz some help!
Thank you in advance!!!
davikos Frienddavikos
- Join date:
- December 2007
- Posts:
- 52
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 2 times in 1 posts
October 19, 2010 at 10:04 am #359517For anyone have the same problem… i did it doing the following…
in folder /plugins/system/jat3/base-themes/default/blocks/ is the spotlight.php
on line 59 we find the following code:
<div class="ja-box column ja-box<?php echo $botsl[$pos]['class']; ?>" style="width: <?php echo $botsl[$pos]['width']; ?>;">
i replace it with:
<div class="ja-box column ja-box<?php echo $botsl[$pos]['class']; ?>"<?php /*?> style="width: <?php echo $botsl[$pos]['width']; ?>;"<?php */?>>
so i can add the style from .CSS file for my module.
Then i created a module suffix for my module that has the option “width:70%” in it
and that was it!
now my user1 position has 70% width
and the rest 30% goes to user2 position!Hope this help someone else!
January 5, 2011 at 2:48 pm #370275This seems very odd. The code only contains botsl (bottom spotlight). How does that impact topsl? What if one wants topsl and botsl to be different? In my case, I wanted topsl user1 to be 70%, but botsl to be 100%. I tried forcing in a 70% into the code, but the logic isn’t there, so both came out 70%, so I had to revert.
I’d appreciate ideas.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 5, 2011 at 3:31 pm #370281Take a look at the guides in the Wiki, rather than editing the JAT3 plugin code you can simply put parameters in the templates back end.
For Inatance
<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_width
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Phill 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum