Edit multiple objects simultaneously

Author Message

Francisca Hernández

Sunday 21 September 2008 3:09:50 pm

Hi all,

We need to develop the functionality to edit multiple objects simultaneously. Something similar to what has the datatype objectrelationlist.

Someone has worked in this or someone has an idea?

Thanks, Fran

Iguana IT, SL - http://www.iguanait.com

Piotrek Karaś

Monday 22 September 2008 12:51:47 pm

Fran,

Can you give an example or explain it a bit further? I cannot recall anything like editing multiple anything with objectrelationlist...

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Francisca Hernández

Tuesday 23 September 2008 3:17:18 am

Hi Piotrek,

When you create a class with ezobjectrelationlist datatype, you have to select the type. If the type is New objects. You go to content, create an object of that class and New objects. So when you are creating the object, you create the new relation objects, and you edit all the objects that are from that relation in the same template. If you reedit this object, you can edit all related object at once.

Tell me if is not clear please, i know my english is not good :-(

Thanks, fran

Iguana IT, SL - http://www.iguanait.com

Piotrek Karaś

Tuesday 23 September 2008 11:08:32 pm

Hi Fran,

Yes, I think I know where you're going. But I'm not sure that would be easy/possible without severe changes to the kernel functionalities (edit view and related) or writing your custom edit view-set. Or creating a complex datatype overriding objectrelationlist datatype, that would actually provide interface for object editing.

Anyway, no experience with that particular problem here, sorry.

Good luck,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 30 2025 22:22:28
Script start
Timing: Jan 30 2025 22:22:28
Module start 'layout'
Timing: Jan 30 2025 22:22:28
Module start 'content'
Timing: Jan 30 2025 22:22:29
Module end 'content'
Timing: Jan 30 2025 22:22:29
Script end

Main resources:

Total runtime0.9269 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1563151.2109
Module start 'layout' 0.00480.0035 739.3672220.6875
Module start 'content' 0.00830.9177 960.05474,462.1406
Module end 'content' 0.92600.0009 5,422.195311.8438
Script end 0.9268  5,434.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3719160.0002
Check MTime0.00120.1285160.0001
Mysql Total
Database connection0.00080.081410.0008
Mysqli_queries0.829689.5060600.0138
Looping result0.00050.0551580.0000
Template Total0.873994.320.4369
Template load0.00190.202420.0009
Template processing0.872094.080220.4360
Template load and register function0.00120.130610.0012
states
state_id_array0.00130.144910.0013
state_identifier_array0.00110.122920.0006
Override
Cache load0.00160.1706270.0001
Sytem overhead
Fetch class attribute can translate value0.00170.180620.0008
Fetch class attribute name0.00220.241560.0004
XML
Image XML parsing0.00330.355120.0016
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00350.3764230.0002
String conversion0.00000.001040.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
4content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs