By leeais on
Hi guys,
I'm new to drupal but quite proficient with html/css etc.
MY main content area is currently 1 column like the drupal default.
I'd like to split it into two such as on www.goingon.com
How do i go about doing that?
also
What did they edit to add the different blogs into those 2 columns.
When i add the news aggregatore to my main content area it goes 100% width of the content area, lets say i only wanted it to go 50% width,
how would i go about changeding its layout?
Thanks again,
Leeais
Comments
The long way : by changing
The long way : by changing page.tpl.php in your theme's folder (if your theme relies on the phptemplate.engine).
The short way : by looking up that module, maybe ? http://drupal.org/project/panels
Caroline
Solution
You can split your main content into two columns by updating the node.tpl.php template. You could use (as a rough guide) the following code (you will need to replace the section in the node template for the div class="content" section with this code):
You can then use css rules to style it as you like. I used:
.content-col1 {float:left; width:45%;}
.content-col2 {float:left; width:45%;}
Ben
2 columns
Hello Ben,
I've stumbled over your 2-column trick here, and have a question:
My node.tpl ... looks like this:
I have been faffing a bit with it, but I'm not sure. Where would you recommend to add your code?
Cheers,
- Christian
-- Christian