Hi Mike, you could do this by adding a doc2form macro to your article template. The doc2form would make your comment form (with author, content etc.) and then automatically create a new comment node, e.g. as child of the article node.
Your article template should display all comment-childs - this can easily be done as a xslt macro.
- a bit rough help, maybe, but maybe enough to get you started,
Do you mean that you want to comment to become child node of the article for which a comment is being submitted?
If so, this is just a macro property settings:
In that case, all comments for an article (if macro is droppend onto template that renders the article) will become child nodes of that specifi article...
Per article comments
Hi!
I'd like people to leave comments on a per article basis.
Anyone have ideas how to implement this?
br,
mike
Hi Mike, you could do this by adding a doc2form macro to your article template. The doc2form would make your comment form (with author, content etc.) and then automatically create a new comment node, e.g. as child of the article node.
Your article template should display all comment-childs - this can easily be done as a xslt macro.
- a bit rough help, maybe, but maybe enough to get you started,
>Tommy
There is a pretty good example that even provides threading in this blog post http://www.geckonewmedia.com/blog/2009/6/4/nested-(threaded)-comments-in-umbraco-with-doc2form-and-jquery based on the umbraco blog package
Works nice :-)
Thanks a lot!
Hi,
I am trying to setup a comment form on one of my sites, how do I make doc2form setup the node as a child node for the current article?
Do you mean that you want to comment to become child node of the article for which a comment is being submitted?
If so, this is just a macro property settings:
In that case, all comments for an article (if macro is droppend onto template that renders the article) will become child nodes of that specifi article...
Hope this helps.
Regards,
/Dirk
Thanks Dirk, just what I needed.
You might also consider using the Honeypot technique as mentioned on the old forum:
http://forum.umbraco.org/yaf_postst6257_Doc2Form-HoneyPot-technique.aspx
It seems to work pretty good at keeping the evil spambots away :)
the new URL for the blog post about implemets doc2form is located here:
http://www.geckonewmedia.com/blog/2009/6/4/nested-%28threaded%29-comments-in-umbraco-with-doc2form-and-jquery
I haven't used it yet, but you may also consider the UComment package created by Tim (including admin panel and spam filtering)...
http://our.umbraco.org/projects/collaboration/ucomment
is working on a reply...