This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ebhoren
ebhoren

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

  1. Select the Hockey Glove product.
  2. Go to Layers tab.
  3. 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:
alt text alt text

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.