Hello
As you can see I’ve not posted before and am rather new to using modx, but do think its an excellent product. For a while I was wanting a way of letting anyone leave a comment on my site (
http://www.myspacegigchallenge.co.uk) and then moderating the comments. I’m not a great programmer and to be honest its still a work in progress to don’t feel in a position to post and code at the moment, but just thought I’d share with you what I’ve done.
The first thing to do was create a chunk which could displayed a form at the bottom of each page, this form then posts the content of the form to another page which calls the comment processing snippet. This snippet basically finds out which article has been commented on (the form submits the id for the article being commented on) and changes it from a document into a folder, it then creates a new document containing the comment details in this folder. To finish the process an e-mail is sent to me telling me which entry has been commented on so that I can login to the manager and read it. If it checks out and isn’t spam then I publish it.
I then wrote another snippit which I call on all of my pages which checks for comments and displays them if any are available. I hope that give you some ideas, when I’ve worked on my code I will try and post it here so that it can be of use to others.
Cheers
Andy