Hi everyone,
in Page.php I've defined that every page should contain an image, which works just fine.
static $has_one = array(
'Photo' => 'Image'
);
Now I want to extend that page type. The ChildPage should still contain an image and some additionnal stuff. The problem is, that the image definition does not get inherited. There is no "PhotoID" column in the childpage table.
If I add
static $has_one = array(
'Photo' => 'Image'
);
to the child page, this column is created but no data is written into it on uploading an image to this page.
Of course i could name the column differently, but then I run into problems when I want to display the image in my template.
Is there a way to solve this problem?
Cheers,
Nicolas