Forums / Suggestions / Ordering custom class attributes

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

eZ debug

Timing: Jan 18 2025 10:23:55
Script start
Timing: Jan 18 2025 10:23:55
Module start 'content'
Timing: Jan 18 2025 10:23:55
Module end 'content'
Timing: Jan 18 2025 10:23:55
Script end

Main resources:

Total runtime0.7188 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7344180.8281
Module start 'content' 0.00560.5384 768.5625812.0156
Module end 'content' 0.54400.1748 1,580.5781342.2344
Script end 0.7187  1,922.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5466210.0002
Check MTime0.00150.2096210.0001
Mysql Total
Database connection0.00080.112410.0008
Mysqli_queries0.622586.60292190.0028
Looping result0.00280.39122170.0000
Template Total0.692196.320.3460
Template load0.00200.283120.0010
Template processing0.690095.998520.3450
Template load and register function0.00020.033010.0002
states
state_id_array0.00090.118510.0009
state_identifier_array0.00100.142820.0005
Override
Cache load0.00180.2438430.0000
Sytem overhead
Fetch class attribute can translate value0.00110.155980.0001
Fetch class attribute name0.00150.2061150.0001
XML
Image XML parsing0.00650.911180.0008
class_abstraction
Instantiating content class attribute0.00000.0035160.0000
General
dbfile0.00600.8412650.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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