Multiple "Main" area in a single page type?

Permalink
I'm trying to create a new page type with 3 columns of contents. Been trying to change the variables around but I cannot get the 3 columns to be editable seperately :(

My theme file for this layout currently looking something like this

<div1><?php $a = new Area('Main'); $a->display($c); ?></div>

<div2><?php $a = new Area('Main'); $a->display($c); ?></div>

<div3><?php $a = new Area('Main'); $a->display($c); ?></div>

I tried changing the $a to something else but my contents are still repeating itself in each div.

Can anyone help point me to the right direction? I tried to use the layout option but not being able to control the width in pixel is really hurting my design.

Thanks!

 
okhayat replied on at Permalink Reply
okhayat
You either have to give a different area name for each Area to be able to do this, or use the 'Add Layout' option and make it single area.
So, just use:
<div><?php $a = new Area('Main'); $a->display($c) ?>
and while editing you see 'Add to Main', click on that and choose 'Add Layout' and create a 3 columns layout.