Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two-way reference field component #98

Open
Jamiewarb opened this issue Dec 30, 2024 · 0 comments
Open

Add two-way reference field component #98

Jamiewarb opened this issue Dec 30, 2024 · 0 comments

Comments

@Jamiewarb
Copy link
Member

You can create a relationship field on one document type to point to another document type. However you then have to remember which way round the fields are.

As a contrived example, blog articles may have authors. You open an article to add authors to it. But if you open an author, you can't add or remove articles to it.

The current solution is to show Backlinks, so that you can see what articles are tagged with this author, then visit the article to change it.

For blog articles, this is okay, but it's not always ideal for some content structures.

Instead, we'd like to create a component that can handle two-way relationships, keeping one in sync whenever the other changes.

In the example above, this would allow Authors to have an Articles relationship, and add/remove articles as well, keeping the list on the articles updated at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant