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 :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 22 2025 07:53:09
Script start
Timing: Jan 22 2025 07:53:09
Module start 'layout'
Timing: Jan 22 2025 07:53:09
Module start 'content'
Timing: Jan 22 2025 07:53:09
Module end 'content'
Timing: Jan 22 2025 07:53:09
Script end

Main resources:

Total runtime0.0271 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.0313151.1953
Module start 'layout' 0.00760.0039 740.226636.6172
Module start 'content' 0.01150.0116 776.843890.0156
Module end 'content' 0.02310.0040 866.859429.9922
Script end 0.0271  896.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003111.2718140.0002
Check MTime0.00134.6213140.0001
Mysql Total
Database connection0.00165.736910.0016
Mysqli_queries0.003814.007130.0013
Looping result0.00000.095710.0000
Template Total0.003613.110.0036
Template load0.00186.573110.0018
Template processing0.00186.509910.0018
Override
Cache load0.00062.384010.0006
General
dbfile0.006423.465980.0008
String conversion0.00000.036940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs