-
AuthorPosts
-
marigny Friend
marigny
- Join date:
- April 2008
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 29
- Thanked:
- 3 times in 1 posts
May 26, 2008 at 2:44 am #128909Hallo,
I find this thread
http://www.joomlart.com/forums/showthread.php?p=45400#post45400
where FAGUS template be modded to have a true left and right column.
But this was for Joomla 1.0. What have I to do to get true left/right colums in Joomla 1.5 ?:p
Thanks for anybody who can help
Marigny
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
June 2, 2008 at 4:23 pm #251587If you open up the index.php from that file and find this:
<div id="ja-containerwrap<?php echo $divid ?>">
<div id="ja-container" class="clearfix">
<?php if ($ja_left) { ?>
<div id="ja-col1"><div class="ja-innerpad">
<?php echo mosLoadModules ( 'left',-3 ); ?>
</div></div>
<?php } ?>
<!-- BEGIN: CONTENT -->
<div id="ja-content">
<div id="ja-content-top">
<div id="ja-content-bot">
<div class="ja-innerpad clearfix">
<?php mosMainBody(); ?>
</div>
</div>
</div>
</div>
<!-- END: CONTENT --><?php if ($ja_right) { ?>
<!-- BEGIN: COLUMNS --><?php if ($ja_right) { ?>
<div id="ja-col2"><div class="ja-innerpad">
<?php if ($hasSubnav) {?>
<div id="ja-subnav" class="module">
<div><div><div>
<h3>On This Page</h3>
<?php $jamenu->genMenu (1,1); ?>
</div></div></div>
</div>
<?php } ?>
<?php echo mosLoadModules ( 'right',-3 ); ?>
</div></div>
<?php } ?><br />
<!-- END: COLUMNS -->
<?php } ?>
</div>
</div>And replace it with same code as i show you below here:
<div id="ja-containerwrap<?php echo $divid ?>">
<div id="ja-container" class="clearfix">
<?php if ($ja_left) { ?>
<div id="ja-col1"><div class="ja-innerpad">
<jdoc:include type="modules" name="left" style="rounded" />
</div></div>
<?php } ?>
<!-- BEGIN: CONTENT -->
<div id="ja-content">
<div id="ja-content-top">
<div id="ja-content-bot">
<div class="ja-innerpad clearfix">
<jdoc:include type="component" />
</div>
</div>
</div>
</div>
<!-- END: CONTENT --><?php if ($ja_right) { ?>
<!-- BEGIN: COLUMNS --><?php if ($ja_right) { ?>
<div id="ja-col2"><div class="ja-innerpad">
<?php if ($hasSubnav) {?>
<div id="ja-subnav" class="module">
<div><div><div>
<h3>On This Page</h3>
<?php $tmpTools->genMenu (1,1); ?>
</div></div></div>
</div>
<?php } ?>
<jdoc:include type="modules" name="right" style="rounded" />
</div></div>
<?php } ?><br />
<!-- END: COLUMNS -->
<?php } ?>
</div>
</div>And change to this in the css file:
#ja-col2 {
float: right;
width: 24.9%;
overflow: hidden;
}#ja-col1 {
float: left;
width: 20%;
overflow: hidden;
}By doing this i hope it works out for you and that you have a ok template that have true left and right for Joomla 1.5
June 4, 2008 at 4:53 pm #251951I tried the above method and it didn’t quote work. I found that I also needed to change the following:
Change:
#ja-content {
float: left;
width: 55%;
background: url(../images/content-center.gif) repeat-y;
}
To:
#ja-content {
float: right;
width: 55%;
background: url(../images/content-center.gif) repeat-y;
}
For it to work. Although now it must be a 3 col – if you don’t fill the left or right – the content section does not stretch to fill. So it breaks the site layout. I’ll keep working on it to see if I can solve that – and will post if I do.
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
June 4, 2008 at 5:09 pm #251955check out this one:
#ja-containerwrap-c #ja-content {
width:78%;
}
What it says there. Is it same or?
Also the way the original creator did this require some more work to do than if he/she did it another way.June 4, 2008 at 5:23 pm #251959Yes – that is exactly what my template currently states. I guess what I need to look at is modifying the #ja-containerwrap values to create the 1col+content, 1col + content + 2col, and content (no columns) with the correct widths etc.
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by Sherlock 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum