Forums / Developer / Edit multiple objects simultaneously

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

eZ debug

Timing: Jan 18 2025 05:20:39
Script start
Timing: Jan 18 2025 05:20:39
Module start 'content'
Timing: Jan 18 2025 05:20:40
Module end 'content'
Timing: Jan 18 2025 05:20:40
Script end

Main resources:

Total runtime0.7381 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7344180.8281
Module start 'content' 0.00620.6180 768.5625559.7578
Module end 'content' 0.62410.1139 1,328.3203336.7422
Script end 0.7380  1,665.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5650210.0002
Check MTime0.00160.2120210.0001
Mysql Total
Database connection0.00070.089210.0007
Mysqli_queries0.669090.63001970.0034
Looping result0.00180.24131950.0000
Template Total0.711496.420.3557
Template load0.00200.270720.0010
Template processing0.709496.109620.3547
Template load and register function0.00010.019110.0001
states
state_id_array0.00070.101510.0007
state_identifier_array0.00130.175720.0006
Override
Cache load0.00170.2277270.0001
Sytem overhead
Fetch class attribute can translate value0.00160.221630.0005
Fetch class attribute name0.00130.176760.0002
XML
Image XML parsing0.00110.148730.0004
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00250.3378340.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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