Hi guys,
ok so I've set up these relationships: "A Museum can have many Exhibitions". I want to link Exhibitions to Museums in the admin gui but I'm a little lost?
Exhibition.php:
class Exhibition extends Page {
...
static $has_one = array(
...
'Museum' => 'Museum'
);
Then in Museum.php:
class Museum extends Page {
...
static $has_many = array(
'Exhibitions' => 'Exhibition'
);
}
... any ideas what magic I have to do to change getCMSFields so that under an Exhibition I get a dropdown to choose which Museum it belongs to, and under a Museum it lists / enables changing of Exhibitions?
Yes I could make Exhibitions children of Museums but there are reasons why I don't want to do this, and besides, it wouldn't work for many_many -- and so I have a similar question for that..
It looks like RelatedDataEditor is the way to do this but when I tried this it crashed because it enforced 1..* not 0..* ?
thanks very much!
Julian (Kiwi in Wimbledon)