Problem/Motivation

Lets say we have two content types, A and B. We want to reference content B from a field in content type A. In the same way we also want to refer content type A from a field in content type B. What we want is If we referenced content type B from content type A, on the referenced side (content type B) also automatically add the content from content type A to it's field.

Linking from A to B should make it linking from B to A too. Both should have updated fields for this.

This scenario also should be worked on the same content type, example: we have a "Company Profile" content type. And we have "Related company" field which is a content reference. Company A is a subsidiary from Company B, and when we add company B as a related company from company A, it should be automatically add company A as the related company on company B. So we don't need to add the relation manually.

This automatic backreference also need to be configurable, which means when we create the field, we have an option to make this auto backreference or not.

Proposed resolution

On D7, there are some contributed modules which can do this like https://www.drupal.org/project/relation and https://www.drupal.org/project/cnr but the D8 version is not available.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Original report by [username]

N/A

Comments

sarmiliboyz created an issue. See original summary.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

geek-merlin’s picture

Status: Active » Closed (duplicate)
Related issues: +#2497649: Implement Entity Reference Backreferences