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

Restrict field_member_of in islandora_defaults. #1373

Open
dannylamb opened this issue Nov 27, 2019 · 3 comments
Open

Restrict field_member_of in islandora_defaults. #1373

dannylamb opened this issue Nov 27, 2019 · 3 comments
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase

Comments

@dannylamb
Copy link
Contributor

Right now its wide open and you can assign something to be a child of a basic page and other such tomfoolery. It's not perfect, but we can define an entity reference view that restricts the autocomplete to only collections and paged content. If we want to go further and restrict pages to paged content and everything else to collections, we'd have to break those out into their own content types to use two different settings for field_member_of.

@mjordan
Copy link
Contributor

mjordan commented Nov 27, 2019

I agree that's tomfoolery but we are in the middle of loading (into 7.x) some scrapbooks that have pages.... and foldouts on some pages, which we are modeling as children of pages. So some crazy people do want to do crazy things. Maybe what is filtered out or in could be a configurable option?

@dannylamb
Copy link
Contributor Author

It's all config @mjordan. What I'm suggesting is to update the field config to use a view instead of leaving it wide open. You can always edit that view or configure the field to restrict by content type or not at all.

However, I'm still looking for the line between giving implementors freedom and providing a more guided experience out of the box. It's a tricky balance. So if this sounds totally undesirable, we can just document how to do it for those who are interested.

@mjordan
Copy link
Contributor

mjordan commented Nov 27, 2019 via email

@kstapelfeldt kstapelfeldt added Type: enhancement Identifies work on an enhancement to the Islandora codebase and removed enhancement labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase
Projects
Development

No branches or pull requests

3 participants