I need to set up 3 fields "Image" for my template.
I'm writing like this:
static $has_many = array(
"Image" => "Image",
"Image2" => "Image",
"Image3" => "Image"
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new ImageField("Image"), "Content");
$fields->addFieldToTab("Root.Content.Bucket1", new ImageField("Image2"), "Content");
$fields->addFieldToTab("Root.Content.Bucket2", new ImageField("Image3"), "Content");
return $fields;
}
But the fields does not appear on the tabs "Bucket1" and "Bucket2".
Can you please help me with that?