-
AuthorPosts
-
thatcomputerdude Friend
thatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 1, 2011 at 7:56 pm #162268I am really stuck trying to figure this out so I thought I’d check to see if anyone else could help.
So on the Right column if it has a module suffix of _orange – I want a background for the module. A top for the module title, a repeating image for the middle and then a bottom.
I’m using the blank template that I’ve customized. Here’s a link to the live working site:
http://dev.joomgo.com/clients/tig/thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 1, 2011 at 8:49 pm #384485This is how I have it sliced up to give more of a visual of what I want the module to look like if it has a suffix.
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 4, 2011 at 3:12 pm #384808Do I need to change how the modules are generated so the extra DIVs are created?
Here is the layout structure and code:
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">
<block name="top-panel" type="modules" style="raw" main-inner="1">top-panel</block>
<block name="header" type="header" main-inner="1"></block>
<block name="topsl" type="spotlight" main-inner="1">user1,user2</block>
</blocks>
<blocks name="middle" colwidth="30">
<block name="content-mass-top">banner</block>
<block name="right1" markup="1">right</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl" type="spotlight" main-inner="1">user6,user7,user8</block>
<block name="footer">user10,user11</block>
</blocks>
</layout>
I read up about customizing blocks but I don’t see any documentation about customizing modules.
http://wiki.joomlart.com/wiki/JA_T3_Framework_2/FAQs#Styling_custom_block_stylesWhen you view the site now, it’s not fixed – I simply have a fixed background applied until I have this figured out.
Don Lee FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
April 6, 2011 at 8:28 am #385107Hi,
I’ve just checked your site, seems you have figured it out already? If not, please explain your idea more details then I may help you 🙂
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 6, 2011 at 1:39 pm #385171No – right now it’s a complete image in the background which is not the best way to do it because it’s not dynamic.
I need modules to have a background made up of 3 images. The top which includes the module name, the middle which is dynamic in how tall it is based on how tall the module is and then the bottom image.
The image above shows you how I sliced the image.
I’ve been playing with the div tags that make up a module but have not had any lucky. I’ve read through the T3 documentation and it shows you what code to add in your layout structure to add different types of div tags to your blocks, but I’ve not seen anything on how to add div tags to your modules…
Let me know if you need any other info or have questions – thank you for trying to help!
Don Lee FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
April 8, 2011 at 7:43 am #385386I think you should read this guide, it might be helpful for you http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#Generate_additional_div
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 8, 2011 at 9:17 pm #385448I read that and referred to it above. That is for blocks, I need to do this for module positions. I’m not seeing how to use that documentation to do what I need to do for Module positions. Can you give an example or maybe point out what I’m missing. I appreciate you helping me!
humusjey Friendhumusjey
- Join date:
- March 2009
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 4 times in 1 posts
April 14, 2011 at 6:00 am #386288I think you need CSS’s help.
Try this:
.ja-moduletable { background: url(top.png) no-repeat 0 0,url(middle.png) no-repeat 0 30px, url(bottom.png) no-repeat 0 80px; }
This is an example for a 100px module height.
Top’s height = 30px
Middle’s height = 50px
Bottom’s height = 20pxSo this way you can add more backgrounds as you need.
1 user says Thank You to humusjey for this useful post
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 15, 2011 at 12:05 am #386460But how can you make it dynamic so the background adjusts in height based on how tall the module is?
humusjey Friendhumusjey
- Join date:
- March 2009
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 4 times in 1 posts
April 18, 2011 at 5:32 am #386782Well, you need to make the images have a nice resolution and height. Your width is static what is nice, now your height is dynamic, so your background needs to be a big one.
You can make a pattern image in Photoshop or whatever you’re using, or you can use an image and play with background-position.
The key is to have a big image with a nice resolution so it will no matter the height of your module if the image is bigger than height.
e.g. If module height is about 300px then you should use 400px or maybe 500px height. You can use “%” instead of “px”.
1 user says Thank You to humusjey for this useful post
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 18, 2011 at 6:58 pm #386978I can get the top and middle images to show properly but the bottom image is not showing, it’s hidden… Here is what I set the CSS up:
.moduletable_orange {
background: url("../images/right-top-bg.png") no-repeat scroll 0 0px, url("../images/right-middle-bg.png") no-repeat scroll 0 8px, url("../images/right-bottom-bg.png") no-repeat scroll 0 200px;
padding: 10px 2px 5px 16px !important;
margin: 8px 0 30px 0!important;
width: 276px!important;
}
pepperstreet Friendpepperstreet
- Join date:
- April 2011
- Posts:
- 55
- Downloads:
- 223
- Uploads:
- 7
- Thanks:
- 21
- Thanked:
- 4 times in 1 posts
April 18, 2011 at 11:01 pm #386998Hello,
You could have a look into the PURITY II template. I remember it has those colored module variations. They are dynamic in height and width (but not endless 😉 depends on your final graphics)The T3 v2 Tutorial for a user theme. Comes close to a PURITY III and can be found here:
http://wiki.joomlart.com/wiki/JA_T3_Framework_2/FAQsThis includes 2 Videos. You should have a look at Video2 at minute 7:57 😉
humusjey Friendhumusjey
- Join date:
- March 2009
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 4 times in 1 posts
April 22, 2011 at 5:36 pm #387665Do you have divs inside your module or something else that could have a background?
.moduletable_orange (here is where your 3 backgrounds are)
.h3 //title
module-content (maybe here is a background)
more-content (or maybe it’s here)If you find any background-color or jpg,png,gif just change it to “background: none;”
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 22, 2011 at 7:01 pm #387683No and I think that is the problem. Here is the structure in the T3v2 Framework for a module:
<div id="Mod99" class="ja-moduletable moduletable_orange clearfix">
<h3><span>Recent News</span></h3>
<div class="ja-box-ct clearfix">
<div class="k2ItemsBlock _orange" id="k2ModuleBox99">
<ul>
</ul>
</div>
</div>
</div>
There has got to be a way to make a dynamic sized background using 2 or 3 slices….
thatcomputerdude Friendthatcomputerdude
- Join date:
- December 2008
- Posts:
- 280
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 67
- Thanked:
- 32 times in 1 posts
April 22, 2011 at 7:01 pm #387684Do documentation shows you how to add move Div’s to a block… or how to do it for the Right column….. I need this done to a module, not a block or column.
AuthorPostsViewing 15 posts - 1 through 15 (of 15 total)This topic contains 15 replies, has 4 voices, and was last updated by thatcomputerdude 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to use 3 background images in modules
Viewing 15 posts - 1 through 15 (of 15 total)