Creating Editable Regions in Specifc Areas

Permalink
Hello,

I am currently in the midst of developing a website for my local curling club.

http://yfrog.com/f/cbproofkhj/

I have decided to use Concrete5 for my project and had a few questions.

I know how to added editable regions already; however, how would I go about adding editable regions for specific areas.

My website consists on a main content box, with 3 teasers for info, a sidebar, header, and footer.

The following link shows my template. Areas with a red tint indicate where I want editable regions.

http://img202.imageshack.us/img202/7822/proof2o.jpg...

I've tried using the snippet of code for MAIN and CUSTOM etc, but all that appears is text for the database and I am unable to edit it.

Any thoughts or suggestions?

Regards,
Neil

 
cannonf700 replied on at Permalink Reply
cannonf700
If you use this line of code in each of your editable regions it should work. You want to place the code in-between the <div></div> tags of the element you want to be editable.

<?php
$a= new Area('Area Name');
$a->display($c);
?>

where 'Area Name' is the specific name of your editable area and no two areas can have the same name.

If you want - examine the code of this template for help:
www.www.rynomediaonline.com/concrete5/soul-mate...
crippleace replied on at Permalink Reply
So the reason why I would see duplicate text in areas was because I didn't the names of my areas?

Thats so simple!

I'll make the fixes right away and I'll reply as soon as I get home from work :)

Thanks
pixelsgeek replied on at Permalink Reply
pixelsgeek
Hi Crippleace,

You can do for some your areas:

<div id="header">
<?php
$a = new Area('HeaderArea');
$a->display($c);
?>
</div>

<div id="mainnav">
<?php
$a = new Area('Mainnav');
$a->display($c);
?>
</div>
....

If you have some questions, you can contact me:

Skype: chuhuutrung :)
jmitri replied on at Permalink Reply
I am using the bootstrap theme for an ecommerce site I'm developing. I've used the examples above to create an editable area on the page type, but what about adding an editable area to the header? I don't see anywhere in header.php that there is an php snipit?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Bootstrap theme is little advanced. It has a no of templates. You have to set a template and customize the header.php on that template

Rony
herbyderby replied on at Permalink Reply
herbyderby
this has been helpful for me, cannonf700. thank you.