Forums / Setup & design / Comments form

Comments form

Author Message

Christian Johansen

Wednesday 18 January 2006 6:06:16 am

Hi, I've added comment functionality to my site. Now I want to merge the two steps of creating and editing the comment. Is this possible? I now have a button that says "Create comment" which takes you to a form to complete a comment.

I want to display the comment form directly on the article page, can anyone give me any pointers as to how I would achieve that?

Ɓukasz Serwatka

Friday 20 January 2006 12:05:50 am

Hi Christian,

This is not possible by default. However you can do it with new action "CreateNewComment". Take a look on this topics:

http://ez.no/community/forum/developer/defining_methods_or_custom_actions_for_content_classes

http://ez.no/community/forum/developer/creating_a_simple_content_object_via_php

This should works. You will need current object node_id as parent which you will use in PHP code.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christian Johansen

Friday 20 January 2006 2:56:43 am

Thanks alot! Looks like what I need. I must say that you have been exceptionally helpful, it seems everytime I have a question it is resolved once you post to my thread :)