Delete object button [solved]

Author Message

Cristian G. L.

Friday 21 May 2004 12:19:51 am

Hi
I try to make a template that shows a list of nodes. This template may have a "New", "Edit" and "Delete" buttons.
The "New" and "Edit" buttons works, but the "Delete"...
I tried with a submit button with name="RemoveButton" (also with name="ActionRemove"), using two hidden fields called ContentObjectID and NodeID.
The last thing i tried is putting checkboxes with name="DeleteIDArray[]" (with the object.id as the value).
Should i put another hidden field?

(I am sorry for my poor english)

Thanks in advance

Cristian

Cristian G. L.

Tuesday 25 May 2004 7:12:21 am

I solved this problem. I someone have a similar problem, i can help him (reply this message).
Where is the documentation about this kind of things? I learned to do it reading the standard admin templates because i didn't found any related documentation.

Bye

Cristian

D K

Thursday 02 July 2009 3:36:01 am

Hi,

I have the same problem. Can you please help me how to do it?

Thanks.

http://www.eyepax.com

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 18 2025 16:14:24
Script start
Timing: Jan 18 2025 16:14:24
Module start 'layout'
Timing: Jan 18 2025 16:14:24
Module start 'content'
Timing: Jan 18 2025 16:14:25
Module end 'content'
Timing: Jan 18 2025 16:14:25
Script end

Main resources:

Total runtime1.0888 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.0469152.6250
Module start 'layout' 0.00430.0026 741.671939.4453
Module start 'content' 0.00681.0808 781.1172495.1172
Module end 'content' 1.08760.0011 1,276.23448.1641
Script end 1.0887  1,284.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2658160.0002
Check MTime0.00120.1110160.0001
Mysql Total
Database connection0.00050.045210.0005
Mysqli_queries1.048596.3055570.0184
Looping result0.00050.0485550.0000
Template Total1.063897.720.5319
Template load0.00210.189920.0010
Template processing1.061797.515720.5309
Template load and register function0.00010.011210.0001
states
state_id_array0.00080.071110.0008
state_identifier_array0.00060.052520.0003
Override
Cache load0.00170.1607210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.074320.0004
Fetch class attribute name0.00080.077330.0003
XML
Image XML parsing0.00020.019820.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00060.0507100.0001
String conversion0.00000.000540.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs