Editing several objects at the same time ?

Author Message

Nabil Alimi

Wednesday 04 January 2006 7:03:10 am

Hi,

Is there a way to edit several items' attribute at the same time ?

For example, I have a "child" class with an attribute "status" which datatype is "checkbox". They're all stored under one node.

I'd like to display the list of "child" like this :

{foreach $childrenList as $child}
<input type="checkbox" name="{$child.statusCheckbox}" value=""/> {$child.name}<br />
{/foreach}

(This is just a sample.)

Is this possible ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Bertrand Dunogier

Wednesday 04 January 2006 7:40:23 am

I don't think it's possible using the default system. You have to write a custom interface, for instance a custom action (http://ez.no/community/forum/developer/custom_form_action), to perform that operation.

The main issue is that the object editing process uses a semi automated feature that updates an object's content based on the POST data. You might have to wire this one out in order to get your stuff working.

Just ask if you have more questions about that, I'll try to help as much as possible.

kevin wei

Wednesday 04 January 2006 7:56:42 pm

hi,

i have 4 similiar questions:

1. how to submit a post to 2 folders at the same time?

2. how to move a node from one folder to other folder just by clicking a button, i have set the node_id to connect to this button, and i know these 2 folder's id

3. how to change (update) the value just by click a button, i do not need a edit form, like click a button, one node'field value change from 1 to 2

4.how delete a node just by click a buuton

i just want not to be bothered by edit form, i want it handle some specific action in backgroud.

thank u!

Nabil Alimi

Thursday 05 January 2006 6:30:17 am

Thanks Bernard,

I think i'll try that way.

By the way, is this possible to add such feature in the content/action via an extension or will I need to directly edit the kernel ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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:03:40
Script start
Timing: Jan 18 2025 16:03:40
Module start 'layout'
Timing: Jan 18 2025 16:03:40
Module start 'content'
Timing: Jan 18 2025 16:03:41
Module end 'content'
Timing: Jan 18 2025 16:03:41
Script end

Main resources:

Total runtime1.0237 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.0469152.6406
Module start 'layout' 0.00600.0031 740.687539.4766
Module start 'content' 0.00911.0133 780.1641579.0078
Module end 'content' 1.02250.0012 1,359.171912.1250
Script end 1.0236  1,371.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2934160.0002
Check MTime0.00130.1266160.0001
Mysql Total
Database connection0.00120.118910.0012
Mysqli_queries0.969394.6892620.0156
Looping result0.00060.0594600.0000
Template Total0.985696.320.4928
Template load0.00200.197820.0010
Template processing0.983696.079920.4918
Template load and register function0.00010.007810.0001
states
state_id_array0.00250.244610.0025
state_identifier_array0.00160.155420.0008
Override
Cache load0.00170.1643290.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047630.0002
Fetch class attribute name0.00110.110150.0002
XML
Image XML parsing0.00060.060030.0002
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00070.0664160.0000
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs