sminnee/silverstripe-modelcomments

This package is abandoned and no longer maintained. No replacement package was suggested.

Comment system for arbitrary DataObjects within ModelAdmin.

Installs: 124

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 8

Type:silverstripe-vendormodule

dev-master 2020-08-07 00:09 UTC

This package is auto-updated.

Last update: 2024-03-07 07:53:31 UTC


README

This is a plugin for Silverstripe CMS.

This package allows the creation of a comment feed within the detail form of a ModelAdmin-based app.

Example

Screenshot

The current view is very simple, as this is an MVP. It builds on the work of gridfieldextensions.

Set up

First, install the module. As it's an MVP, only dev-master is available:

> composer require sminnee/silverstripe-modelcomments:dev-master

Then, add HasModelCommentsExtension to objects that you wish to comment on.

<?php

use SilverStripe\ORM\DataObject;
use Sminnee\ModelComments\HasModelCommentsExtension;

class MyClass extends DataObject
{
    // ...

    private static $extensions = [
        HasModelCommentsExtension::class,
    ];

    // ...
}

Finally, assign commenting, view comment, and administer comment permissions to the appropriate user groups.

Screenshot