"Main Content" area repeats itself

Permalink
Hello,

I am trying to set up multiple content areas, but only the first is showing as editable, with the rest taking on whatever I put in the first area. So what happens is:

[main content area 1] <- can edit
[main content area 2] <- cannot edit
[main content area 3] <- cannot edit

I put "Some text 1" in content area 1, and it publishes to

Some text 1
Some text 1
Some text 1

Any idea what I'm doing wrong? I am using
<?php $a = new Area('Main Content');
                     $a->display($c);
                     ?>

to define editable content areas

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Try adding multiple editable areas with different names
<div>
<?php $a = new Area('Main Content');
                     $a->display($c);
                     ?>
</div>
<div>
<?php $a = new Area('Content Two');
                     $a->display($c);
                     ?>
</div>
<div>
<?php $a = new Area('Content Three');
                     $a->display($c);
                     ?>
</div>
IdmGlobal replied on at Permalink Reply
I had just figured it out when I got this post. Thank you!