Skip to content

Commit 9435f9c

Browse files
authored
Merge branch '6.0' into maurits-no-virtualenv-clear
2 parents 816ee62 + 7ed42f9 commit 9435f9c

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

docs/backend/upgrading/version-specific-migration/upgrade-to-60.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,3 +602,51 @@ Please make sure you write valid JSON for the `template` option.
602602
```{seealso}
603603
See also the [TinyMCE 4 to 5 upgrade guide](https://www.tiny.cloud/docs/migration-from-4x/).
604604
```
605+
606+
## Viewlets
607+
608+
Plone 6.0 renames various viewlets or moves them to a different viewlet manager.
609+
This is because some viewlet names contained the name of a viewlet manager.
610+
This didn't always match the name of their actual viewlet manager, especially after moving them.
611+
Plone 6.0 removes such references from the viewlet names to avoid confusion.
612+
613+
- Plone 6.0 removes the `plone.header` viewlet from `plone.portaltop` manager, making it empty.
614+
- Plone 6.0 renames the `plone.abovecontenttitle.documentactions` viewlet to `plone.documentactions`, and moves it from manager `plone.belowcontentbody` to `plone.belowcontent`.
615+
- Plone 6.0 renames the `plone.abovecontenttitle.socialtags` viewlet to `plone.socialtags`.
616+
It remains in manager `plone.abovecontenttitle`.
617+
- Plone 6.0 renames the `plone.belowcontentbody.relateditems` viewlet to `plone.relateditems`.
618+
It remains in manager `plone.belowcontentbody`.
619+
- Plone 6.0 removes the `plone.manage_portlets_fallback` viewlet from the `plone.belowcontent` manager.
620+
- Plone 6.0 renames the `plone.belowcontenttitle.documentbyline` viewlet to `plone.documentbyline`.
621+
It remains in manager `plone.belowcontenttitle`.
622+
- Plone 6.0 renames the `plone.belowcontenttitle.keywords` viewlet to `plone.keywords`, and moves it from manager `plone.belowcontent` to `plone.belowcontentbody`.
623+
- Plone 6.0 adds the `plone.rights` viewlet in manager `plone.belowcontentbody`.
624+
625+
The names in the following table have had the namespace `plone.` removed from them for display purposes only.
626+
In your code, you should use the object's `plone.` namespace as a prefix.
627+
This table shows the same information, but in tabular form.
628+
629+
```{table} Viewlet changes from 5.2 to 6.0
630+
631+
| 5.2 viewlet name | 5.2 viewlet manager | 6.0 viewlet name | 6.0 viewlet manager |
632+
| ---------------- | ------------------- | ---------------- | ------------------- |
633+
| `header` | `portaltop` | | `portaltop` |
634+
| `abovecontenttitle.documentactions` | `belowcontentbody` | `documentactions` | `belowcontent` |
635+
| `abovecontenttitle.socialtags` | `abovecontenttitle` | `socialtags` | `abovecontenttitle` |
636+
| `belowcontentbody.relateditems` | `belowcontentbody` | `relateditems` | `belowcontentbody` |
637+
| `manage_portlets_fallback` | `belowcontent` | | `belowcontent` |
638+
| `belowcontenttitle.documentbyline` | `belowcontenttitle` | `documentbyline` | `belowcontenttitle` |
639+
| `belowcontenttitle.keywords` | `belowcontent` | `keywords` | `belowcontentbody` |
640+
| | `belowcontentbody` | `rights` | `belowcontentbody` |
641+
```
642+
643+
Plone 6.0 makes changes to two viewlet managers:
644+
645+
- Plone 6.0 removes the `plone.documentactions` (`IDocumentActions`) viewlet manager.
646+
In Plone 5.2 it was already empty.
647+
- Plone 6.0 adds the `plone.belowcontentdescription` (`IBelowContentDescription`) viewlet manager.
648+
By default this has no viewlets.
649+
650+
One final change is that Plone 6.0 moves the `plone.footer` viewlet from `plone.app.layout/viewlets` to `plone.app.portlets`.
651+
The viewlet remains in manager `plone.portalfooter`.
652+
It renders the portlets from the `plone.footerportlets` portlet manager.

0 commit comments

Comments
 (0)