Ability to edit article comments

Author Message

Nathan Moke

Monday 27 June 2005 9:07:19 pm

I can't seem to find anything on this site regarding the above. Can anybody point me to some documentation/link as I would like to implement it on my site.

Nb. I tried using the <i>edit comments</i> script from the forums template, but it only allows me to edit the article itself, not the comments item (which is what I need). I suspect that it has something to do with defining the right node id - but thats just my newbie guess. All assistance, hints, tips, and/or encouragement greatly appreciated!

Ɓukasz Serwatka

Monday 27 June 2005 11:25:57 pm

Hi Nathan,

Exacly, you need node_id of comment object set in hidden field. If you using "line" view for your comments, you have to add node_id in your edit form.

    <input type="hidden" name="NodeID" value="{$node.node_id}" />

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 21 2025 04:13:35
Script start
Timing: Jan 21 2025 04:13:35
Module start 'layout'
Timing: Jan 21 2025 04:13:35
Module start 'content'
Timing: Jan 21 2025 04:13:36
Module end 'content'
Timing: Jan 21 2025 04:13:36
Script end

Main resources:

Total runtime1.3888 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9453151.2109
Module start 'layout' 0.00640.0041 739.156336.6484
Module start 'content' 0.01051.3774 775.8047554.3203
Module end 'content' 1.38790.0009 1,330.12508.0000
Script end 1.3888  1,338.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2430160.0002
Check MTime0.00130.0950160.0001
Mysql Total
Database connection0.00160.112210.0016
Mysqli_queries1.314394.6324540.0243
Looping result0.00070.0493520.0000
Template Total1.348797.120.6743
Template load0.00220.161320.0011
Template processing1.346496.947120.6732
Template load and register function0.00020.017110.0002
states
state_id_array0.00170.121010.0017
state_identifier_array0.00160.111820.0008
Override
Cache load0.00170.1246110.0002
Sytem overhead
Fetch class attribute can translate value0.00080.059020.0004
Fetch class attribute name0.00170.124540.0004
XML
Image XML parsing0.02411.733820.0120
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.02351.6886240.0010
String conversion0.00000.000840.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs