Tile for showing most recent discussion items.
Project description
Tile for showing most recent discussion items.
Features
“Latest comments” tile with several fields to determine which discussion items to show.
Inspiration was taken from collective.portlet.discussion.
Installation
Install collective.tiles.discussion by adding it to your buildout:
[buildout] ... eggs = collective.tiles.discussion
and then running bin/buildout.
You probably want to add a tile management package as well, for example plone.app.mosaic.
Usage
Create a Classic UI Plone Site.
In the Discussion control panel globally enable comments.
In the Content Settings control panel enable comments on Page, or any content type that you want.
Add one or more comments.
Go to the Add-ons control panel.
Activate plone.app.mosaic or some other tile management package.
Activate collective.tiles.discussion.
Create a page.
Set its display to layout_view for Mosaic.
Edit the page. The layout view should be active now.
Insert a “Latest comments” tile, configure it, and save the page.
Now the tile should show a list with the latests comments.
Note that there is also a “Discussions” tile in plone.app.standardtiles. This shows the comments of the current page, plus an add-form for a new comment.
Filter on review states
In the tile you can filter on review state if you want. By default Discussion Items have only one state: published. In this case a filter is not needed.
In the Discussion control panel you can enable comment moderation. This enables a workflow with more states. Comments start in the pending state, and can be published, rejected, or marked as spam.
Currently, in Plone 6.0.6, without filter, an anonymous user will see Discussion Items from the states published, rejected, and spam. So you may want to explicitly filter on the published state in the tile, and possibly pending.
Contribute
If you are having issues, or want to contribute a bugfix or feature, please let us know.
License
The project is licensed under the GPLv2.
Contributors
Maurits van Rees, maurits@vanrees.org
Changelog
1.0.0a1 (2023-08-31)
Initial release. [mauritsvanrees]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file collective.tiles.discussion-1.0.0a1.tar.gz
.
File metadata
- Download URL: collective.tiles.discussion-1.0.0a1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c67cafc459cac9e3b5f982c7f828a02e6231b2e915ab7ae144939d57add65369 |
|
MD5 | c537888f0d361eda23a739dcfa801fae |
|
BLAKE2b-256 | db04794a87de2f5eb0814c9079f1ac2224ab3ba1ed4314ad3616c12ef2baccaa |
File details
Details for the file collective.tiles.discussion-1.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: collective.tiles.discussion-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67ea921711f447edd141df31f97897179bb118d198cdff36fdbbe1e7f86bdf0 |
|
MD5 | d116979694391e3e18cc2db9140eac15 |
|
BLAKE2b-256 | 4c60ad6a20adce57cdc7d026297354b30109a804ddfbd3ae6a3fd6adcd2894ca |