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

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


Go to End


3 Posts   1367 Views

Avatar
DsX

Community Member, 178 Posts

3 April 2011 at 7:51am

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

Forum Moderator, 5523 Posts

3 April 2011 at 3:38pm

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

Community Member, 178 Posts

7 April 2011 at 4:48am

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.