Can anyone tell me how to activate commenting on a custom controller based page?
I have created my own gallery system that uses page types for GalleryLists, and galleries, but not per image.
I have a 'Display' method (part of my galleryController) that if added to the url is activated, simple enough.
Problem, is I want commenting on the Image Display but not the pagetype Gallery, how can I activate the option in my controller?
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.
Commenting in 2.4 and early is pretty tied to the sitetree. For SilverStripe 3.0 we've introduced a new commenting module (rather than in core) which you can apply to whatever dataobjects you wish.
It is still in the very early stages and needs to be improved but try it out - https://github.com/silverstripe/silverstripe-comments.
You may have to manually delete the CommentAdmin class from the module for now while we work out the knicks (it is still in dev!)
Willr, thanks for getting back with an answer. I will give it a shot, but not for a while.
Gotta say I'm pretty excited about 3.0 though I am still figuring out 2.4 (scared about migration)
Will post my findings if useful.