Simple question about adding comments

Author Message

Massimiliano Bariola

Thursday 21 July 2005 9:42:46 am

hi,

I was wondering how I need to construct an "add comment" form that will be placed in the same page of the article.

So far, all tutorials I have found have an article page, then a "add comment" button which takes you to another page. I suppose this makes ezpublish create a draft of a comment, THEN it allows the user to edit it.

I want to have the template in the same page as the article, so that the submit button will create the object, fill it with the gathered form data, save it and return me to the same article page.

Essentially, to make a "gather data/create/store" operation instead of a "create/edit/store or discard" one. I suppose I could do it via an extension but it seems overkill to me.

Any ideas?

Ɓukasz Serwatka

Monday 25 July 2005 2:27:37 am

Hi Massimiliano,

This is not a way how to use eZ publish, all variables must me be passed to content/action.

You can create your own module, pass variable data to that module and create new objects. More info you can find in old documentation.

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

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 31 2025 05:30:47
Script start
Timing: Jan 31 2025 05:30:47
Module start 'layout'
Timing: Jan 31 2025 05:30:47
Module start 'content'
Timing: Jan 31 2025 05:30:47
Module end 'content'
Timing: Jan 31 2025 05:30:47
Script end

Main resources:

Total runtime0.0171 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.0061 588.2344151.2109
Module start 'layout' 0.00610.0033 739.445336.6484
Module start 'content' 0.00930.0061 776.093890.0625
Module end 'content' 0.01540.0017 866.156329.9922
Script end 0.0171  896.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.1838140.0002
Check MTime0.00116.5860140.0001
Mysql Total
Database connection0.00137.810010.0013
Mysqli_queries0.002715.998230.0009
Looping result0.00000.170310.0000
Template Total0.00105.910.0010
Template load0.00084.817710.0008
Template processing0.00021.042510.0002
Override
Cache load0.00063.260210.0006
General
dbfile0.001810.290080.0002
String conversion0.00000.060040.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