Hi, I was thinking of using the comments system, but without the built in javascript (I would write my own ) and with my own comment templates.
Now, instead of modifying it in the core (or better cms/code/sitefeatures) I was thinking of
just making my own PageCommentInterface.php, based on the original.
I would put this in mysite/code/ and do something like
MyCustomPageCommentInterface extends ViewableData
{
// here I basically copy everything but change what I need.
}
I would probably still use the existing class PageCommentInterface_Form.
I guess so far this would work, no?
Then, to get the variable $MyCustomPageComments available in my pagetemplates,
I would do something like this in the mycustompage_controller
function MyCustomPageComments()
{
return new MyCustomPageCommentInterface($this, 'PageComments', $this->data());
}
Now, any thoughts of this? Is this gonna work or does anyone see gigantic flaws already?
I'm probably going to build in some BBCODE option too, is this going to conflict with akismet or not?
Thanks!