How to keep content in....

Permalink
Hi there

I know when I add a content area in Concrete5, I put in the code
<?php
    $a = new Area('Main Content 2');
    $a->display($c);
?>


Except, then it deletes all of the content (words, etc.)

How can I keep that there in the code?

-Grant

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
Do you know how a cms works? If you want it to be editable, put in the area code, and then copy and paste the content you wanted there into a content block
telters replied on at Permalink Reply
Thank you very much.
I was thinking that there was another way, but the old copy and paste works as well!
12345j replied on at Permalink Reply
12345j
what you want to do is rename main content 2 to main or sidebar, or something like that. You should name it the name of the area, not main content 2. for common area names look under the should herehttp://www.concrete5.org/documentation/developers/system/submit-the...