We.js plugin to add comments feature in We.js projects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files/public
lib
locales add support for comment notifications Dec 18, 2017
server update to work with sequelize v4 Feb 24, 2018
.editorconfig init Nov 1, 2014
.gitignore init Nov 1, 2014
.jscsrc init Nov 1, 2014
.jshintignore init Nov 1, 2014
.jshintrc update code to es6 Sep 2, 2017
.npmignore init Nov 1, 2014
README.md
package-lock.json 1.1.8 Jan 5, 2018
package.json v2.0.0 Feb 24, 2018
plugin.js add support for comment notifications Dec 18, 2017

README.md

We.js comments plugin

Add comments to We.js project

Configuration

[project]/config/local.js

    // ...
    latestCommentLimit: 3,// limit for preloaded comments
    comments: {
      models:  {
        // enable comments in models:
        post: true,
        article: true,
        cfnews: true
      }
    }
    // ...

Installation

we i we-plugin-comment

Features

Widgets

comment-form

Add comments in any record with widgets interface

Helpers:

comments

Add comments programaticaly in any record template

{{{comments modelName="post" modelId=record.id comments=record.metadata.comments count=record.metadata.commentCount locals=this}}}

License

the MIT license.

Sponsored by