This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm looking for a tuto/example on how to build nested relations on backend. I'm developing a plugin as a learning experience (https://github.com/ebhoren/octobercms-nested-relations) and i need to create nested relations.
Actual result
- Select the Hockey Glove product.
- Go to Layers tab.
- Click Finger layer. A popup form should appear.
As you can see, each layer can be available in 6 various colors. Each colors is displayed in a checkbox.
Expected result
The colors relations look good if we have a small number of colors. It would be better if we could add|remove color associated with this layer with a complete October back-end list view.
I usually do this by creating a partial that render relation using:
<?= $this->relationRender('layers') ?> in a controller.
Which looks like this:
Anyone know how to do this kind of relations inside another relations?
GitHub issue is here: https://github.com/octobercms/october/issues/1959 Code & repo is here: https://github.com/ebhoren/octobercms-nested-relations
Thanks
1-1 of 1