Skip to content

Commit d4abb61

Browse files
Documentation for Discussion migration to 6.1.
This is for the PLIP that I have just merged: plone/Products.CMFPlone#3958 I changed the existing section title from "Discussion is disabled by default" to "Discussion is a core add-on". Discussion was always disabled by default, so this would not be a change. Note that the Discussion control panel is still missing from Volto: plone/volto#29 But the upgrade to 6.1 does not change anything to this.
1 parent 4fe9ac8 commit d4abb61

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

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

+17-5
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,29 @@ The goal of turning more of the current core packages into core add-ons is to ma
9090
9191
(backend-upgrade-plone-v61-discussion-label)=
9292
93-
## Discussion is disabled by default
93+
94+
## Discussion is a core add-on
9495
9596
Discussion is a feature that allows your site visitors to comment on web pages for any content object.
97+
The code behind this is in the `plone.app.discussion` package.
98+
In Plone 6.0 and earlier, this was a dependency of `Products.CMFPlone`, making it available for installation in all Plone sites.
99+
In Plone 6.1 it's a dependency of the `Plone` package.
100+
96101
Discussion is disabled by default in Plone 6.1 and later.
97102
To enable discussion, you need to perform the following tasks.
98103
99-
% Please add sufficient details for how to do this task, then delete this comment.
100-
% Also consider that there might be different approaches between Classic UI and Volto that need to be mentioned.
101-
102104
1. In your Python {file}`requirements.txt` or {file}`pyproject.toml` file, add the core add-on `plone.app.discussion` to your dependencies.
103105
1. Run pip to install `plone.app.discussion`.
104106
1. Restart the Plone backend to load `plone.app.discussion`.
105-
1. Enable the {guilabel}`Discussion` add-on in the Plone control panel under {menuselection}`Site Setup --> General`.
107+
1. Enable the {guilabel}`Discussion Support` add-on in the {guilabel}`Add-ons` control panel under {menuselection}`Site Setup --> General`.
108+
1. If you use Plone Classic UI, you can then use the {guilabel}`Discussion` control panel to further configure this feature, for example for enabling comment moderation.
106109
1. 🍻
110+
111+
If you have an existing Plone 5.2 or 6.0 site and you migrate to 6.1, then migration code handles the change:
112+
113+
* If the `plone.app.discussion` Python package is in your setup, the migration does nothing: existing discussion configuration and comments remain unchanged.
114+
* If the `plone.app.discussion` Python package is _not_ in your setup, and the site has no existing comments (discussions), then the migration code removes the Discussion configuration from your site.
115+
Apparently you were _not_ using comments in your site, so the configuration is no longer needed.
116+
* If the `plone.app.discussion` Python package is _not_ in your setup, but the site has existing comments (discussions), then the migration code stops with an error.
117+
Apparently you _were_ using comments in your site.
118+
Easiest solution here is to add the `plone.app.discussion` package to your dependencies.

0 commit comments

Comments
 (0)