I would like to replace all instances of [c] with © on the website but not in the admin area. So in the admin there should be a textarea with [c] but on the public site © will be displayed instead.
<?php
class SpecialPage extends Page {
static $db = array(
'Text1' => 'Text',
);
static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Content", new TextareaField('Text1', 'Text'));
return $fields;
}
}
class SpecialPage_Controller extends Page_Controller {
}
?>