-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of comments index for administrators #87
Comments
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).
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
instead of url from readme
|
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.
The text was updated successfully, but these errors were encountered: