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

Section Fieldtype should not be listable #2425

Merged
merged 2 commits into from
Sep 14, 2020
Merged

Section Fieldtype should not be listable #2425

merged 2 commits into from
Sep 14, 2020

Conversation

duncanmcclean
Copy link
Member

This pull request makes it so fields with the Section fieldtype should no longer be listable or appear as columns anywhere in the CP.

Changes

  • If a field is has the type of section, it will no longer be listable and will no longer show as as column when you click the 'column dropdown' on the collection entries listing page.

  • When a user adds/updates a section field in the Fieldset/Blueprint builder, they will no longer see the option to configure if it's listable or not. I thought it would make sense to hide/remove this option as we override it anyway in the Field class.

Related Issues

It fixes #2117 and fixes #2013.

@jasonvarga
Copy link
Member

Awesome.

Normally I'd say no to this because there's section-specific stuff out in odd places, but it'll be ok for now. We planned to introduce "ui fields" that the section fieldtype would fall under. We can move the code around when we do that. 🤘

@jasonvarga jasonvarga merged commit 25ae40b into statamic:master Sep 14, 2020
@robdekort
Copy link
Contributor

Wow awesome job @damcclean. UI fields sound cool @jasonvarga.

@duncanmcclean duncanmcclean deleted the bugfix/sections-should-not-be-listable branch September 15, 2020 07:26
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

Successfully merging this pull request may close these issues.

Remove Section Fieldtype from Columns Section fields shouldn't be listable at all
3 participants