Header to editable block
Permalink
I have a site done with a developer, due to his carelessness some pages of the header on the site are editable in C5 but some are not. May I know how to convert those not done into C5 block.
Basically the ecommerce header is converted to C5 and replacable but the home page, error page and some other pages are not converted to C5 with replacable header.
Basically the ecommerce header is converted to C5 and replacable but the home page, error page and some other pages are not converted to C5 with replacable header.
Should be fairly easy,
just remove the parts of the templates that you would like to be editable and replace them with this code:
<?php
$a = new Area('HeaderNav');
$a->display($c);
?>
You can do this for any part of the page, just alter the name 'HeaderNav' to something unique each time you use it on a template.
-John
just remove the parts of the templates that you would like to be editable and replace them with this code:
<?php
$a = new Area('HeaderNav');
$a->display($c);
?>
You can do this for any part of the page, just alter the name 'HeaderNav' to something unique each time you use it on a template.
-John
Thank you. I'll pick it up asap.
http://www.concrete5.org/documentation/how-tos/make-a-theme/...