Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Comment plugin not working


Go to End


4 Posts   1427 Views

Avatar
N!ck

Community Member, 6 Posts

6 December 2015 at 12:49am

as said in docs "Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the `Behaviour` tab for a given page. Once the `Allow Comments` checkbox is ticked, republish and view the webpage.
" but i cant find any 'allow comments' 'checkbox'. i tried to reinstall plugin 3 times but its not coming up there..

Avatar
helenclarko

Community Member, 166 Posts

7 December 2015 at 8:37am

Hi N!ck,

Have you had a look over the configuration document?
https://github.com/silverstripe/silverstripe-comments/blob/master/docs/en/Configuration.md

You may need to add the following to your config.yml file:

SiteTree:
  extensions:
    - CommentsExtension

You can require login with the example below:

SiteTree:
  extensions:
    - CommentsExtension
comments:
    require_login: true

Then simply "/dev/build?flush=1"

-helenclarko

Avatar
N!ck

Community Member, 6 Posts

7 December 2015 at 6:56pm

Edited: 07/12/2015 7:07pm

Hey, helenclarko thanks it's working now. I have one more question how do I change admin URL? I found some StackOverflow questions, but they say that admin URL is hard coded in multiple files so I tried htaccess mod_rewrite *.htaccess file in root dir*

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)admin\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)admin$ [OR]
RewriteCond %{REMOTE_ADDR} !^192.168.1.102$ /* my ip */
RewriteRule ^(.*)$ - [R=404,L]
</IfModule>

but by this way only 'mysite.com/admin' gets blocked if i enter 'mysite.com/admin/' or 'admin/pages' i redirect to 'admin/pages/'
so how do i block every url under admin/?
or is there anyway to change the admin url?

Avatar
helenclarko

Community Member, 166 Posts

8 December 2015 at 8:38am

Hi N!ck,

You may have already looked at this:
http://stackoverflow.com/questions/24125655/how-can-i-change-the-admin-path-in-silverstripe-3-1-x

This may actually work fine in SS 3.2, as reports are now a standalone addon and likely not hardcoded any longer.

-helenclarko