I've created a little 'blurb' text area for a page type, when I flush the database, it appears to create the field, but it never shows up in the back end. On another site, it's working fine, and I can't think of why it's not here.
I have:
1) added this code (below)
2) flushed database
3) assigned new page type to content items
UPDATE: I've just pulled the code over to another page type and it works fine. Just not in the new one...
PS. Do I get a gold star for asking the most questions? :)
class TeamMember extends Page {
static $db = array(
"IntroductionText" => "Text",
"Blurb" => "Text",
);
}
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new TextareaField("IntroductionText", "Short Blurb"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextareaField("Blurb", "Blurb"), "Content");
return $fields;
}
class TeamMember_Controller extends Page_Controller {
}
?>