File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ To access the module, you need to configure the modules array in your applicatio
5959> http://localhost/path/to/index.php?r=/cms/manage/index
6060
6161
62- **Configure UrlManager **
62+ **Configure Url Manager **
6363
6464You need to configure the `urlManager` array in your application configuration:
6565
@@ -160,3 +160,26 @@ public function actions()
160160 ];
161161}
162162```
163+
164+ 4. You can change comments module settings by the following code:
165+
166+ ```php
167+ public function actions()
168+ {
169+ return [
170+ 'page' => [
171+ 'class' => 'yii2mod\cms\actions\PageAction',
172+ 'commentWidgetParams' => [
173+ 'maxLevel' => 1,
174+ 'dataProviderConfig' => [
175+ 'pagination' => [
176+ 'pageSize' => 10
177+ ],
178+ ],
179+ ]
180+ ]
181+ ];
182+ }
183+ ```
184+
185+ > For detail information about comments module please view the following [page](https://github.com/yii2mod/yii2-comments)
You can’t perform that action at this time.
0 commit comments