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!
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!
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.