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.

General Questions

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

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

Can anyone tell me how to activate commenting on a custom controller based page?


Reply

3 Posts   1016 Views

Avatar
DsX

3 April 2011 at 7:51am Community Member, 178 Posts

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?

Avatar
Willr

3 April 2011 at 3:38pm Forum Moderator, 5511 Posts

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!)

Avatar
DsX

7 April 2011 at 4:48am Community Member, 178 Posts

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.