Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Closed
jlawrence-yellostudio opened this issue May 28, 2019 · 4 comments
Labels
content modeling 📓 features related to content modeling enhancement improvements to existing features

Comments

@jlawrence-yellostudio
Copy link

jlawrence-yellostudio 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
Copy link
Member

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
Copy link
Author

jlawrence-yellostudio 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
Copy link
Member

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.

@brandonkelly brandonkelly added content modeling 📓 features related to content modeling enhancement improvements to existing features labels May 28, 2019
@brandonkelly brandonkelly added this to the 4.0 milestone May 28, 2019
@jlawrence-yellostudio
Copy link
Author

thanks @brandonkelly

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
content modeling 📓 features related to content modeling enhancement improvements to existing features
Projects
None yet
Development

No branches or pull requests

2 participants