Skip to content

Releases: yii2mod/yii2-comments

1.9.2 Release

06 Jan 15:27
Compare
Choose a tag to compare
  1. Update readme and Comment widget

1.9.1 Release

06 Jan 15:16
Compare
Choose a tag to compare
  1. Added new comment events 1942fc9

1.9 Release

05 Dec 17:14
Compare
Choose a tag to compare
  1. Added AdjacencyListBehavior for save comment and delete child comments
  2. Added ModerationBehavior
  3. Renamed the following methods in CommentModel
  • getIsActive() -> isActive()
  • getIsDeleted() -> isDeleted()
  • getListAuthorsNames() -> getAuthors()
  1. Removed $showDeletedComments property from widget and model
  2. Remove method deleteComment() from CommentModel
  3. Added ArrayDataProvider CommentWidget , now you can enable pagination and sorting, for example:
<?php echo \yii2mod\comments\widgets\Comment::widget([
      'model' => $model,
      'dataProviderConfig' => [ 
          'sort' => [
              'attributes' => ['id'],
              'defaultOrder' => ['id' => SORT_DESC],
          ],
          'pagination' => [
              'pageSize' => 10
          ],
      ],
]); ?>
  1. Also added ListView for display a comments list.

1.8.2 Release

04 Dec 18:00
Compare
Choose a tag to compare

Fix migrations

1.8.1 Release

22 Nov 16:07
Compare
Choose a tag to compare
  1. Added php-cs-fixer
  2. Fixed code style

1.8 Release

14 Nov 12:11
Compare
Choose a tag to compare

Changlog

  • Enh #32: added permanent link to comments

For upgrade to this release please execute migration by the following command:

$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-comments/migrations

1.7 Release

11 Nov 10:27
Compare
Choose a tag to compare

Changelog

  • Enh 045c336 : added new properties to ManageController, rename comment search class and move it to models\search folder.

Now you can override views files and comment search class in following way:

  'controllerMap' => [
      'comments' => [
          'class' => 'yii2mod\comments\controllers\ManageController',
          'searchClass' => [
              'class' => 'yii2mod\comments\models\search\CommentSearch',
              'pageSize' => 25
          ],
          'indexView' => 'custom path to index view file',
          'updateView' => 'custom path to update view file',
      ],
  ]

1.6.2 Release

11 Nov 08:36
Compare
Choose a tag to compare

Changelog

1.6.1 Release

09 Nov 15:25
Compare
Choose a tag to compare

Changelog

1.6 Release

09 Nov 10:10
Compare
Choose a tag to compare
  1. Rename comment table from Comment to comment

To apply this changes please execute the new migration by the following command:

$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-comments/migrations