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

Allow some field settings to be overridden from the field layout designer #4321

Open
jlawrence-yellostudio opened this issue May 28, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@jlawrence-yellostudio
Copy link

commented May 28, 2019

If I create a field for example "Related Entry" with a limit of 1, I can only use this in other field layouts where only one related entry is also desired. Resulting in me having to create multiple fields for essentially the same purpose, with slight variations in the settings.

If the Limit could be set on the field layout, that would be great; I don't expect this to be easy as "limit" isn't a global setting same as the "required" flag is.

Maybe you could add an extra column in the fieldlayoutfields table which could accommodate some non global settings and grab the limit from there?

What do you think @brandonkelly ?

@brandonkelly

This comment has been minimized.

Copy link
Member

commented May 28, 2019

I’m not sure I’m following. The “Branch Limit” setting is currently only available on Categories fields, not Users fields. Is “Related User” a Categories field? Or did you mean the “Limit” setting?

@jlawrence-yellostudio

This comment has been minimized.

Copy link
Author

commented May 28, 2019

@brandonkelly Apologies I meant limit, not branch limit (i've edited for clarity).

My real life example was actually to do with entries, I have to create an additional field pointing at exactly the same entry source for the same purpose just because the limit is global to that field.

@jlawrence-yellostudio jlawrence-yellostudio changed the title [Feature Request] Allow branch limit setting in section structure field layout rather than field settings [Feature Request] Allow limit setting in section structure field layout rather than field settings May 28, 2019

@brandonkelly brandonkelly changed the title [Feature Request] Allow limit setting in section structure field layout rather than field settings Allow some field settings to be overridden from the field layout designer May 28, 2019

@brandonkelly

This comment has been minimized.

Copy link
Member

commented May 28, 2019

Gotcha. It’s similar to #806 (ability to rename fields from the field layout designer) and #841 (ability to override the field instructions from the field layout designer).

We have plans to explore all of this (including overriding field type-specific settings) from the field layout designer as part of a larger content refactoring project we’re planning for Craft 4 (#1524).

Good to have specific issues we can reference as we’re working on the changes, though, so I will keep this open and add it to the 4.0 milestone.

@jlawrence-yellostudio

This comment has been minimized.

Copy link
Author

commented May 29, 2019

thanks @brandonkelly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.