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();
$GridField = new GridField("RightColumnBoxes", "Context in right column:", $this->RightColumnBoxes(), $gridFieldConfig);
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?
I am also having some fun with the beta 3. You said there is not checkboxes for the dataobjects related with other dataobjects which are in the tabs. Do you know some way to handle the relationships in the way you could do with the complextablefield ????
I would like to have something like this for a project I want to upgrade.
I also try to figure out how to setup the GridField for a Many-to-many relation. I can´t see checkboxes. You can browse existing DataObjects within a searchfield... and then say "Link Existing". is that the way to go?!