Commit fdfea7c
Distribution: add example for hiding fields from the form. (#1833)
* Distribution: add example for hiding fields from the form.
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.
* make json snippet valid
Co-authored-by: Steve Piercy <web@stevepiercy.com>
* indentation
---------
Co-authored-by: Steve Piercy <web@stevepiercy.com>1 parent a63b51c commit fdfea7c
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
248 | 272 | | |
249 | 273 | | |
250 | 274 | | |
| |||
0 commit comments