hello,
im trying to put some new feautures to blogentry.
I created file PaliBlogEntry in mysite/code with this in it:
<?php
/**
* Extends the BlogEntry page type
*/
class PaliBlogEntry extends BlogEntry {
static $db = array(
);
static $has_one=array(
'Image' => 'Image'
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new ImageField("Image"), "Content");
return $fields;
}
}
class PaliBlogEntry_Controller extends BlogEntry_Controller {
}
?>
Than ...dev/build...
But it doesnt show image field :(
If i put it directly to blog/code/BlogEntry everything is OK... But i dont wanna touch the core.
Maybe im missing something easy here... but cant find what :(
Regards
pali