Open newscloud opened 6 years ago
Hi, you can check comment configuration in the following template - https://github.com/yii2mod/base
Hi, again, aiming for simplification ... can you please clarify where on that page?
Do you mean in config main that does address comments/index? (I'm not sure how to access the admin view either).
'comment' => [
'class' => 'yii2mod\comments\Module',
'controllerMap' => [
'manage' => [
'class' => 'yii2mod\comments\controllers\ManageController',
'layout' => '@app/modules/admin/views/layouts/column2',
],
],
],
Also, is there a way to customize the text for the comments button e.g. "Add your comment" instead of "comment".
THANK YOU
If you need to override the comment view file, in your case "change the button text" you can just create your view file and override this property - https://github.com/yii2mod/yii2-comments/blob/master/widgets/Comment.php#L37
FYI,
In my yii2 with enablePrettyUrl, I found the comment index worked at this url:
Normally I would translate the url listed in the readme from:
To:
But this one didn't work.
Thanks for the module!
In my Yii2 app i found comment edit page on same link, like @ejcramer at
example.com/comment/manage
instead of url from readme
example.com/comments/index
Nice widget, thank you!
Could you please give an example of setting up comments/index?
My test site uses paths e.g. http://localhost:8888/cityx/site/about
But http://localhost:8888/cityx/comments/index fails to 404
I am logged in as a user role admin
Thank you.
p.s. One suggestion. I was confused when I first displayed comments and they just showed 0 with o form. It may help to remind people they need to be logged in to the creation form.