22855 Posts in 9971 Topics by 2805 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|Go to End|
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?
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!)
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.
|Go to Top|