Thanks uncle cheese for the quick response and also the code :)
But, Im fairly noob and have no idea what im doing wrong but I cant seem to get it to work ... this is what I have done .
1. Created a new file in imagegallery/code called ImageGalleryField.php
2. Copied the following code in the file :
<?php
class MyImageGalleryField extends ImageGalleryPage
{
protected $itemClass = "MyImageGalleryItem";
}
class MyImageGalleryItem extends ImageGalleryItem
{
static $db = array ('Foo' => 'Text');
public function getCMSFields_forPopup()
{
$f = parent::getCMSFields_forPopup();
$f->push(new TextField('Foo'));
return $f;
}
}
class MyImageGalleryField_Controller extends ImageGalleryPage_Controller {
}
?>
3. Ran dev/build
4. I am now getting errors ... http://www.pastie.org/994741
Thanks again for your help, and time :)
Simon C