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

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 20:51:25
Script start
Timing: Jan 18 2025 20:51:25
Module start 'layout'
Timing: Jan 18 2025 20:51:25
Module start 'content'
Timing: Jan 18 2025 20:51:26
Module end 'content'
Timing: Jan 18 2025 20:51:26
Script end

Main resources:

Total runtime0.9586 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9141152.6250
Module start 'layout' 0.00900.0036 740.539139.4453
Module start 'content' 0.01260.9444 779.9844550.3672
Module end 'content' 0.95700.0015 1,330.351612.1641
Script end 0.9586  1,342.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3875160.0002
Check MTime0.00140.1441160.0001
Mysql Total
Database connection0.00160.163410.0016
Mysqli_queries0.903194.2125600.0151
Looping result0.00050.0563580.0000
Template Total0.906294.520.4531
Template load0.00190.199920.0010
Template processing0.904394.331520.4521
Template load and register function0.00020.023210.0002
states
state_id_array0.00560.581610.0056
state_identifier_array0.00310.323620.0016
Override
Cache load0.00150.1612250.0001
Sytem overhead
Fetch class attribute can translate value0.00080.078420.0004
Fetch class attribute name0.00160.170050.0003
XML
Image XML parsing0.00090.090120.0004
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00080.0813170.0000
String conversion0.00000.001140.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs