custom layout - #main not showing
Permalink
Hi all
I got rid of the idea of adapting an existing template, and made my own (with the help of a friend).
So far:
www.www.c-ex-c.org/Testsite_textcube...
Well, I can't figure out why the menu won't move down - marin-top does not do a thing. But I'll figure that one out, sooner or later (although, if anybody could point me in the right direction, I'd be glad...).
The real problem is my maincontainer, or background respectively, not showing up in any pages other than the right column layout. As long as I select two columns in DESIGN, with the smaller one being on the right, it's all good. But in "One column" and also with the small one on the left, the semi-transparent background does not show, as you can see in the pages "About" and "Search".
Why is that? Since it's the #main where the left side text on the "Home" page is located, isn't the same container supposed to be the content of the single column layout? Shouldn't it load #main for all the content in the middle section (between header and footer)?
What am I missing?
The code for the main container:
default.php
Thanx a bunch!
RizzzO
I got rid of the idea of adapting an existing template, and made my own (with the help of a friend).
So far:
www.www.c-ex-c.org/Testsite_textcube...
Well, I can't figure out why the menu won't move down - marin-top does not do a thing. But I'll figure that one out, sooner or later (although, if anybody could point me in the right direction, I'd be glad...).
The real problem is my maincontainer, or background respectively, not showing up in any pages other than the right column layout. As long as I select two columns in DESIGN, with the smaller one being on the right, it's all good. But in "One column" and also with the small one on the left, the semi-transparent background does not show, as you can see in the pages "About" and "Search".
Why is that? Since it's the #main where the left side text on the "Home" page is located, isn't the same container supposed to be the content of the single column layout? Shouldn't it load #main for all the content in the middle section (between header and footer)?
What am I missing?
The code for the main container:
#main { background: transparent url(images/bg.png) repeat-y scroll left top; float: left; width: 770px;
default.php
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <?php $this->inc('elements/header.php'); ?> <div id="padding"></div> </div> <div id="wrapper"> <div id="main"> <div id="content"> <?php $ah = new Area('Header'); $ah->display($c); ?> <?php $a = new Area('Main'); $a->display($c); ?> </div> <div id="newsbox"> <div id="innernews"> <?php $a = new Area('Sidebar'); $a->display($c); ?> </div> </div>
Viewing 15 lines of 18 lines. View entire code block.
Thanx a bunch!
RizzzO
Hi kino
thanx for your answer. Sorry, I posted an old default.php - my bad. The one I currently use has #main, not #maincontainer. I edited the original message.
Do you still see the problem?
thanx
RizzzO
thanx for your answer. Sorry, I posted an old default.php - my bad. The one I currently use has #main, not #maincontainer. I edited the original message.
Do you still see the problem?
thanx
RizzzO
check view.php
or
other template php.
or
other template php.
ok, I checked full.php and view.php, now they got identical contents as default.php.
I think I found the problem: It looks as if I have the right sidebar layout as standard.
If I add a new page, and select "Full Width" layout, I still get the right column...Same goes for the "Right Sidebar" layout. It's just when I select the "Left Sidebar" layout that I don't get the background.
How do I associate those layouts? How do I show my template that, when chosing the "Full Width" layout, it's not supposed to display a right sidebar(in my case the newsbox)?
PS: I opened a new thread, since this is another question:http://www.concrete5.org/index.php?cID=23295...
I think I found the problem: It looks as if I have the right sidebar layout as standard.
If I add a new page, and select "Full Width" layout, I still get the right column...Same goes for the "Right Sidebar" layout. It's just when I select the "Left Sidebar" layout that I don't get the background.
How do I associate those layouts? How do I show my template that, when chosing the "Full Width" layout, it's not supposed to display a right sidebar(in my case the newsbox)?
PS: I opened a new thread, since this is another question:http://www.concrete5.org/index.php?cID=23295...
or
change
to