Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Comment system for arbitrary DataObjects within ModelAdmin.

Notifications You must be signed in to change notification settings

sminnee/silverstripe-modelcomments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Model Comments

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

About

Comment system for arbitrary DataObjects within ModelAdmin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published