You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/backend/upgrading/version-specific-migration/upgrade-to-60.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -650,3 +650,9 @@ Plone 6.0 makes changes to two viewlet managers:
650
650
One final change is that Plone 6.0 moves the `plone.footer` viewlet from `plone.app.layout/viewlets` to `plone.app.portlets`.
651
651
The viewlet remains in manager `plone.portalfooter`.
652
652
It renders the portlets from the `plone.footerportlets` portlet manager.
653
+
654
+
## Boolean fields
655
+
656
+
Since `zope.schema==6.1.0`, all `zope.schema.Bool` fields must have a `required=False` attribute.
657
+
This allows you to either tick or not tick the checkbox, submit the form, and process the field with either its value when ticked or `None` when unticked.
658
+
Otherwise, you can't save the form without ticking the checkbox, which effectively makes the field value always `True`.
See all the available [Barceloneta SCSS files](https://github.com/plone/plonetheme.barceloneta/tree/master/scss), and import the ones that you want to use.
153
+
```
154
+
155
+
- Add `@plone/plonetheme-barceloneta-base` as a dependency.
156
+
157
+
```shell
158
+
yarn add @plone/plonetheme-barceloneta-base
159
+
```
160
+
161
+
- Add ascript in {file}`package.json` to compile the CSS.
Look at [`plonetheme.barcelonta`'s {file}`package.json`](https://github.com/plone/plonetheme.barceloneta/blob/master/package.json) for a few more scripts that can prefix and minify your CSS and get a bundle for use in production.
169
+
```
170
+
171
+
- Run the compilation.
172
+
173
+
```shell
174
+
yarn run css-compile-main
175
+
```
176
+
177
+
- Finally, {ref}`register the bundle <classic-ui-from-scratch-bundle-registration-label>`.
178
+
179
+
With this guide, you will save yourself quite some work on styling the toolbar, the add and edit forms, and control panels, while keeping the rest of your theming separate.
0 commit comments