Skip to main content

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

Changelog

1.0.0a1 (2023-08-31)

  • Initial release. [mauritsvanrees]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.tiles.discussion-1.0.0a1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file collective.tiles.discussion-1.0.0a1.tar.gz.

File metadata

File hashes

Hashes for collective.tiles.discussion-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 c67cafc459cac9e3b5f982c7f828a02e6231b2e915ab7ae144939d57add65369
MD5 c537888f0d361eda23a739dcfa801fae
BLAKE2b-256 db04794a87de2f5eb0814c9079f1ac2224ab3ba1ed4314ad3616c12ef2baccaa

See more details on using hashes here.

File details

Details for the file collective.tiles.discussion-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for collective.tiles.discussion-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f67ea921711f447edd141df31f97897179bb118d198cdff36fdbbe1e7f86bdf0
MD5 d116979694391e3e18cc2db9140eac15
BLAKE2b-256 4c60ad6a20adce57cdc7d026297354b30109a804ddfbd3ae6a3fd6adcd2894ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page