Hi there
I'm having some fun with the gridfield in SS3 beta2. I can't really figure out how the many_many relations work with GridField. Here's my code:
public static $many_many = array(
"RightColumnBoxes" => 'RightColumnBox'
);
...
$gridFieldConfig = GridFieldConfig_RelationEditor::create();
$gridFieldConfig->getComponentByType('GridFieldAddExistingAutocompleter')->setSearchFields('Title');
$GridField = new GridField("RightColumnBoxes", "Context in right column:", $this->RightColumnBoxes(), $gridFieldConfig);
$fields->addFieldToTab("Root.RightColumn", $GridField);
There are no errors with this, but how can I attach these many many relations to my pages where the relation is defined? There are no check boxes in the gridfield, and the search field doesn't seem to return anything.
Is it because this part of gridfield isn't finished?
Many regards
Joel