howto include the comment form directly in the itempage

Author Message

Saad Tazi

Tuesday 01 September 2009 2:40:16 pm

Hi,
It may be a easy question, but I can't find out how to achieve that. I tried to search for an answer in the forum, without success:
I want to include the "new comment form" directly in the article template. I don't want to click on the "new comment" button that redirects me to the edit comment form...

I think that the problem here is that the object needs to exists before you can edit it, but I don't want to create increment the object id everytime someone visit the article page (without

Is there an easy way to include the "post a comment" form directly in the article page (or the blog post page)?

I was thinking:
- create a custom module that will handle the object creation and node assignment in one step (one click).

Any thoughts about this?

Xavier Serna

Thursday 03 September 2009 8:54:53 am

Hi Saad,

perhaps this is what you need: http://ezpedia.org/en/project/powercontent
(in brief, a one-click publish action)

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Saad Tazi

Thursday 03 September 2009 12:19:24 pm

Thanks Xavier for your answer., I'll give it a try.

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 30 2025 21:21:45
Script start
Timing: Jan 30 2025 21:21:45
Module start 'layout'
Timing: Jan 30 2025 21:21:45
Module start 'content'
Timing: Jan 30 2025 21:21:46
Module end 'content'
Timing: Jan 30 2025 21:21:46
Script end

Main resources:

Total runtime1.0735 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.3750151.2422
Module start 'layout' 0.00530.0041 739.6172220.7500
Module start 'content' 0.00941.0632 960.36724,439.9453
Module end 'content' 1.07260.0008 5,400.31257.7969
Script end 1.0735  5,408.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3113160.0002
Check MTime0.00120.1106160.0001
Mysql Total
Database connection0.00060.059510.0006
Mysqli_queries0.995992.7682570.0175
Looping result0.00050.0453550.0000
Template Total1.014794.520.5074
Template load0.00180.164520.0009
Template processing1.012994.358220.5065
Template load and register function0.00150.137510.0015
states
state_id_array0.00190.179010.0019
state_identifier_array0.00230.209720.0011
Override
Cache load0.00150.1419190.0001
Sytem overhead
Fetch class attribute can translate value0.00200.185620.0010
Fetch class attribute name0.00180.167040.0004
XML
Image XML parsing0.00200.188420.0010
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00400.3699160.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs