2 Column Layout

thinkinteractive - January 28, 2009 - 09:27

Hi There,

I currently have drupal installed with a central editable column in the middle and a menu on the left had side. I would like to add a column on the right hand side of the page which can be editied in a similar way to the central column (usual tinyMCE way). In theory i would like the right hand column to be different on every page. just like the central column...

How would i go about setting this up?

Thanks in Advanced

Jake

This would be difficult to

dannyjohnson1 - January 28, 2009 - 13:32

This would be difficult to achieve by getting involved in the php.

A simpler way would be to theme the node area over both columns then separate with column css classes. You would need to have something like this to your themes layout.css:

#content {
width: 460px;
}

#content-inner {
padding: 20px;
}

.leftcol  {
display: inline;
float: left;
width: 200px;
}

.rightcol {
margin-left:220px
}

You would then switch to full html format and include the following when writing your content for a page:

<div class=leftcol>Left colum content here</div>
<div class=rightcol>Right column content here</div>

This isnt the neatest for a client website but would work fine for one that you are managing yourself.

Good luck. Please post your results and a link back here later!

DJ
State international engineering

To over come this problem i

thinkinteractive - January 28, 2009 - 14:10

To over come this problem i installed this module:

http://drupal.org/project/sidecontent

and works a treat for exactly what i want

 
 

Drupal is a registered trademark of Dries Buytaert.