Distribution: add example for hiding fields from the form.#1833
Merged
stevepiercy merged 3 commits into6.0from Jan 9, 2025
Merged
Distribution: add example for hiding fields from the form.#1833stevepiercy merged 3 commits into6.0from
stevepiercy merged 3 commits into6.0from
Conversation
I am making a distribution for a client. * I don't want to show the description field because it should remain empty (at least that is how it is on their current Plone 4 site). * I don't want to show the default_language field, because I am setting this (and four available languages) in the Generic Setup profile. * Same for the portal_timezone: it is a site for Belgium, so I am setting Europe/Brussels in the Generic Setup profile, so this timezone is always set, even when a colleague in Portugal creates a site on his laptop. Unfortunately currently these fields have to be in the schema, as documented, otherwise you get an error. So instead I found out how to hide these fields.
Member
Author
|
Direct link to the updated section in the preview: https://plone6--1833.org.readthedocs.build/developer-guide/create-a-distribution.html#schema-json |
stevepiercy
requested changes
Jan 9, 2025
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Contributor
|
The failing test is addressed in a separate PR #1832. Merging, and thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am making a distribution for a client.
Unfortunately currently these fields have to be in the schema, as documented, otherwise you get an error. So instead I found out how to hide these fields.
📚 Documentation preview 📚: https://plone6--1833.org.readthedocs.build/