Ordering custom class attributes

Author Message

Marcin Kondera

Thursday 16 February 2006 1:45:46 am

I want to make a suggestion about ordering class attributes.

I work on a project, which use very large custom class objects (two of them use about 50 attributes). I have to make changes in those classes, add some attributes and reorder them. I use default backend templates for creating objects - so I must keep order in attributes list - it is more productive for editor-users .

So my suggestion is to change "arrow" ordering for priority ordering in class attributes. Using teks fields with "numbered" order is more effective.

Patrick Kaiser

Thursday 16 February 2006 3:01:06 am

Completly agree!
Even if class attributes are not changed so often, its just very annoying if you have to move an attribute up 10 positions and wait for the page to reload every time.

best regards,

patrick


Best regards,

Patrick

Ɓukasz Serwatka

Thursday 16 February 2006 3:46:24 am

Hi,

Take a look on this discussion:

http://lists.ez.no/pipermail/sdk-public/2005-July/001461.html

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Kondera

Thursday 16 February 2006 5:07:09 am

Hi Lukasz
I saw this, and I use it on my own project. But I find it very unsatisfaction to change disribution files of ezPublish. And now, when I build website for my company I cant do that, cuz I cant take any risk of future upgrade errors.

Daniele Nocentini

Friday 03 March 2006 12:51:37 pm

it would be interesting to integrated a ordering management like this:

http://demo.script.aculo.us/ajax/sortable_elements

Antica Bottega Digitale srl
http://www.abd.it

Matthew Carroll

Thursday 13 April 2006 9:27:49 am

I've been thinking about a similar extension and came across this link of interest, Yahoo! BSD-licenced drag and drop libraries:

http://developer.yahoo.com/yui/dragdrop

This would make a 'must have' extension like the ajax tree menu, and save hours of click, wait, click, wait... integrating this into ezpublish would be beyond me at the moment without a lot of learning, but it's certainly begging to be done and I would certainly try to help if a team wanted to work on developing this extension!

Matthew

http://carroll.org.uk

Xavier Dutoit

Thursday 13 April 2006 10:18:37 am

Hi,

Kristof has xajaified a few ez publish features. The class edit is one of them and if I remember properly his latest version improves the ordering thing.

Haven't tested the latest version, but it already helped a lot not to wait when you add an attribute.

X+

http://www.sydesy.com

Kristof Coomans

Thursday 13 April 2006 11:14:59 pm

It doesn't do drag & drop, but it's already a great improvement for editing classes:
http://ez.no/community/contribs/hacks/xajax_classattributes

I recommend to get the latest version from SVN because it contains some usability improvements and code cleanup.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.8643 sec
Peak memory usage4,096.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0391152.6250
Module start 'layout' 0.00600.0037 741.664139.4609
Module start 'content' 0.00970.8533 781.1250806.9375
Module end 'content' 0.86300.0013 1,588.062520.1563
Script end 0.8643  1,608.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3480160.0002
Check MTime0.00130.1561160.0001
Mysql Total
Database connection0.00070.076110.0007
Mysqli_queries0.792091.6307820.0097
Looping result0.00080.0941800.0000
Template Total0.825795.520.4129
Template load0.00200.235320.0010
Template processing0.823795.299820.4118
Template load and register function0.00010.013110.0001
states
state_id_array0.00120.140810.0012
state_identifier_array0.00180.206520.0009
Override
Cache load0.00180.2100430.0000
Sytem overhead
Fetch class attribute can translate value0.00050.055770.0001
Fetch class attribute name0.00090.1037150.0001
XML
Image XML parsing0.00400.461770.0006
class_abstraction
Instantiating content class attribute0.00000.0029160.0000
General
dbfile0.00170.1962540.0000
String conversion0.00000.000940.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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs