Re-ordering a ezmatrix in edit view

Author Message

Kedar Deshpande

Tuesday 22 December 2009 8:09:19 am

I found this question was asked once before but could not find any answers. I have an override for the ezmatrix.tpl file because I added in some javascript but overall it is a out of box matrix attribute. I can add and delete items but the problem I'm having is that there is no way to move items around. If not with fancy ajax, is there a somewhat elegant way to allow the user to re-order the matrix rows?

thanks.

Kedar Deshpande

Tuesday 22 December 2009 8:11:02 am

I've already tried out the sortable ezmatrix datatype template listed here:

http://ez.no/developer/contribs/template_plugins/sortable_ezmatrix_datatype

but it is more of a sort rather than individual level re-ordering.

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

Main resources:

Total runtime0.6127 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9375152.6250
Module start 'layout' 0.00600.0032 740.562539.4453
Module start 'content' 0.00920.6022 780.0078421.8516
Module end 'content' 0.61130.0014 1,201.85948.1563
Script end 0.6127  1,210.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5511160.0002
Check MTime0.00140.2231160.0001
Mysql Total
Database connection0.00070.120410.0007
Mysqli_queries0.574493.7382520.0110
Looping result0.00040.0724500.0000
Template Total0.577994.320.2890
Template load0.00190.315020.0010
Template processing0.576093.999920.2880
Template load and register function0.00020.036210.0002
states
state_id_array0.00080.127510.0008
state_identifier_array0.00110.174520.0005
Override
Cache load0.00160.253890.0002
Sytem overhead
Fetch class attribute can translate value0.00150.238310.0015
Fetch class attribute name0.00100.158620.0005
XML
Image XML parsing0.00020.028910.0002
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00060.0981100.0001
String conversion0.00000.001440.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs