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.