actually....
I have had the help of sam on this, he set it up with all that stuff:
This is the code:
-------------------------------------------------------------------------
class CoolCompany extends BlogHolder {
static $db = array(
"URL" => "Varchar",
"MainContact" => "Varchar",
"MainEmail" => "Varchar",
"Address" => "Text",
);
static $has_one = array(
"Logo" => "Image",
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new ImageField("LogoID", "Logo"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextField("URL"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextField("MainContact", "Main Contact"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextField("MainEmail", "Main Email"), "Content");
$fields->addFieldToTab("Root.Content.Main", new TextareaField("Address", "Address", 3), "Content");
return $fields;
}
}
class CoolCompany_Controller extends BlogHolder_Controller {
}
?>
------------------------------------------------------
Ive flushed the database many a time, all the rest of the fields are coming through just fine, and I've tried that <? control > thing in the template file, but no go...
I am wondering if the upload isnt working?
FYI. As Sam will agree, these issues are normally a result of my incompetance and nothing to do with Silverstripe, but I'm really stuck ont his one....
Thanks heaps for your help!