-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 a way to hide ContentTypeDefinitionSettings #15472
Conversation
What are the reasons for hiding the |
In certain cases like when creating CustomSettings or CustomUserSettings, these options are useless. So it would be nice to hide them instead since they do nothing. |
I remembered the related issue, could you please share a GIF screenshot to show how it works in the UI |
relate :#13335 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Full-text" section is something like this too. How about hiding that as well?
...e/OrchardCore.ContentManagement.Abstractions/Metadata/Models/ContentTypeDefinitionOptions.cs
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentTypes/Editors/ContentTypeSettingsDisplayDriver.cs
Outdated
Show resolved
Hide resolved
…ntTypeSettingsDisplayDriver.cs Co-authored-by: Zoltán Lehóczky <[email protected]>
…ntTypeSettingsDisplayDriver.cs Co-authored-by: Zoltán Lehóczky <[email protected]>
…ntTypeSettingsDisplayDriver.cs Co-authored-by: Zoltán Lehóczky <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #15472 (review).
Note that in the permissions module is recommended to be retained, because I have used the |
Good point. Perhaps hiding the other options is not as obviously generally beneficial as we thought either. |
Good point. Maybe we should only show "Securable" option only and hide the rest of the options since they are related to the content UI |
Similarly with |
Well you can still change the settings via code (migration). But, not the UI. So yes it is not a good idea to remove securable option from the UI. I'll change the setting to show Securable and hide the rest |
…/OrchardCMS/OrchardCore into ma/content-type-settings-options
That looks good, but I'm still awaiting your answer on #15472 (review) :) |
Sorry I missed your comment couple of times. Full-Text settings are part of a different driver |
I'd guess that people wanting to search Custom Settings has a lower chance than them wanting to list them. |
I am not against hiding the search settings. But I just don't want to do it in this PR. The intention behind this PR was just to add configuration to show/hide the listable, creatable, draftable, flags. We can create another PR around the search settings and other settings like Elasticsearch, Lucene,Azure AI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK then!
No description provided.