Hi Willr
I am using DataObjects as Pages and would like to use your Comments extension.
I have installed it and the CommentsForm is showing up on my DataObjects after placing the appropriate configuration in mysite/_config file.
I am using the following to render my Post DataObjects as Pages:
public function view($request) {
$segment = $request->param('ID');
if ($obj = Post::get()->filter('URLSegment', $segment)->First()) :
switch ($obj->Type) {
case 'News-Post' :
return $this->renderWith(
array('PostsPage_view_news', 'Page'),
array(
'Object' => $obj,
'Type' => $obj->Type,
'Title' => $obj->Title,
'Entry' => $obj->Entry
)
);
My question is how would I pass through the $CommentsForm into the Postspage_view_news page?
I have tried the following, but while the form is being rendered, it is not associating the comments made through a form w/ a particular dataobject. Baseclass on comments made are set to SiteTree and not Post.