Forums / Developer / Selecction attribute issue

Selecction attribute issue

Author Message

Jorge estévez

Thursday 24 July 2008 8:31:52 am

Hello community,

I have a product class with a selection attribute (material), each time I stumble with a new kind of product I have to go to the class and add the new material to the selection attribute. This is not a human way to do things....

I just need some kind of workarround that will not make me go to the class and add a new value to the selection attribute... Any ideas? thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Thursday 24 July 2008 8:53:02 am

I didn't quite get what you have problems with, but:

If you only want to be able to reorder and remove selections without having to reedit every object: enhanced selection

If you want to let the editors add selections and re order then without given them access to editing classes: ezobjectrelation with drop down setup or ezobjectrelationlist in drop down mode if you need multi selection*.

* you need to set the folder to fetch possible relations from in both these cases.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jorge estévez

Friday 25 July 2008 4:19:41 am

I create a class with a selection attribute (product class)
I add 3 values to the selection attribute (material)

I start creating instances of the class (nodes) and when I stumble with a new type of product I go again to the class and and the new material to the selection attribute...

I go again and reate new items, and so on...

The problem is that there are 250 000 products to add to the site, so materials could be a long list, in fact as I develop the site, new products are always arriving, so there is no way I could tell all the materials I will have in the page!

I would like to have some kind of "link" in wich the selecetion values should feed themselves from a "bunch of nodes", a "list" of values or else. The issue here is not to mess with the class so often.

Is there some way this could be handled?

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Friday 25 July 2008 5:26:29 am

Yes there is:

If you want to let the editors add selections and re order then without given them access to editing classes: ezobjectrelation with drop down setup or ezobjectrelationlist in drop down mode if you need multi selection*.

* you need to set the folder to fetch possible relations from in both these cases. 

If you want to let your editors edit the options or not is entirely up to you of course.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 18:32:36
Script start
Timing: Jan 18 2025 18:32:36
Module start 'content'
Timing: Jan 18 2025 18:32:37
Module end 'content'
Timing: Jan 18 2025 18:32:38
Script end

Main resources:

Total runtime1.6303 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.0068 589.1406180.8359
Module start 'content' 0.00681.4410 769.9766555.4453
Module end 'content' 1.44780.1824 1,325.4219336.7500
Script end 1.6302  1,662.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.2842210.0002
Check MTime0.00170.1017210.0001
Mysql Total
Database connection0.00050.033310.0005
Mysqli_queries1.547694.93011970.0079
Looping result0.00230.14091950.0000
Template Total1.590297.520.7951
Template load0.00220.135320.0011
Template processing1.587997.403320.7940
Template load and register function0.00020.014410.0002
states
state_id_array0.00130.076910.0013
state_identifier_array0.00180.112120.0009
Override
Cache load0.00180.1120250.0001
Sytem overhead
Fetch class attribute can translate value0.00100.062930.0003
Fetch class attribute name0.00090.052650.0002
XML
Image XML parsing0.00100.061130.0003
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00340.2097280.0001
String conversion0.00000.000430.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs