This looks like the right place to be asking this question.
Not an easy question to phrase so I'll explain what I am trying to do:
Class Page has an image of class Page_Image
public static $has_one=array('Image'=>'Page_Image');
...
$fields->addFieldToTab('Root.Content.Images', new ImageField('Image', 'Page Image'));
...
This works great, I have a Page_Image class that generates a couple of different sized images.
Tricky part comes when I add the ecommerce module where the Product class also has a field called "Image", this is of Product_Image class though so I was expecting that when adding an image to a Product page it would be entered into the database as such but when I look it has a class of Page_Image and the image formats called in the templates don't work.
The behaviour I was hoping for was that the same field name could be used for both page types, keeping the CMS UI clean, and that the image variations would be generated depending on which page class was being used. I guess that's not how the data/object model works.
Is there a trick I'm missing or will I have to change the field name in the Page class and use a decorator to remove that field fro mthe CMS?
Cheers,
Rich