Releases: yii2mod/yii2-comments
Releases · yii2mod/yii2-comments
1.9.2 Release
- Update readme and Comment widget
1.9.1 Release
- Added new comment events 1942fc9
1.9 Release
- Added
AdjacencyListBehavior
for save comment and delete child comments - Added
ModerationBehavior
- Renamed the following methods in CommentModel
- getIsActive() -> isActive()
- getIsDeleted() -> isDeleted()
- getListAuthorsNames() -> getAuthors()
- Removed
$showDeletedComments
property from widget and model - Remove method
deleteComment()
from CommentModel - 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
],
],
]); ?>
- Also added ListView for display a comments list.
1.8.2 Release
Fix migrations
1.8.1 Release
- Added php-cs-fixer
- Fixed code style
1.8 Release
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
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
Changelog
- Fix 056dc46
1.6.1 Release
Changelog
- Fix 052fc7f
1.6 Release
- Rename comment table from
Comment
tocomment
To apply this changes please execute the new migration by the following command:
$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-comments/migrations