This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
maxDubovsky
Hi Friends,
I would like to play around Morpth to Many relation and create the logic where you choose a model type from dropdown and then have a recordfinder with choosen model items. I guess I can use something like:
if ($model instanceof SomeModel) return;
if ($model->exists){
SomeController::extendFormFields // here let's say I add needed recordfinder
// will use addTabFields to add it
}
And as I see I will have to apply these actions to model event.
Looking forward to hear ideas how to make it simple and in it's best way?
P.s.: Maybe it will be possible to create plugin with widget and this functionality, maybe it is more simple as I'm trying to think of it ?
1-1 of 1