[solved] Object relations & dropdown list

Author Message

Tristan Rivoallan

Monday 08 August 2005 5:51:14 am

Hi everybody,

I want to set a 1:1 relation between datatype A and datatype B. For this purpose the "object relation" attribute type looked perfect, but i'm having issues.

I need to use the "Dropdown list" selection method, but I don't understand how to determine with what data is filled the list.

I expected to have a class selector like the one present in the "object relations" attribute type.

anybody ?

thx

Paul Borgermans

Monday 08 August 2005 6:29:08 am

Hi

there is no class filtering. You can select a node in which the children will be the drop-down list elements

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Tristan Rivoallan

Monday 08 August 2005 6:38:27 am

Thanks a lot for your answer :)

Xavier Dutoit

Monday 08 August 2005 9:09:26 am

Have a look at the enhanced object relation.

It allows to choose from all the objects from the same parent or having the same class. You can choose to display them as a dropdown list (or a radio button).

http://ez.no/community/contribs/datatypes/enhanced_objectrelation

http://www.sydesy.com

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 22:32:52
Script start
Timing: Jan 18 2025 22:32:52
Module start 'layout'
Timing: Jan 18 2025 22:32:52
Module start 'content'
Timing: Jan 18 2025 22:32:53
Module end 'content'
Timing: Jan 18 2025 22:32:53
Script end

Main resources:

Total runtime1.0022 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1484152.6250
Module start 'layout' 0.00630.0049 741.773439.4453
Module start 'content' 0.01120.9893 781.2188580.1563
Module end 'content' 1.00050.0016 1,361.375012.1406
Script end 1.0021  1,373.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3442160.0002
Check MTime0.00150.1451160.0001
Mysql Total
Database connection0.00090.086910.0009
Mysqli_queries0.933493.1356620.0151
Looping result0.00070.0737600.0000
Template Total0.960395.820.4801
Template load0.00200.198420.0010
Template processing0.958395.621820.4791
Template load and register function0.00030.027410.0003
states
state_id_array0.00090.089010.0009
state_identifier_array0.00210.206120.0010
Override
Cache load0.00160.1593220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.080730.0003
Fetch class attribute name0.00130.134260.0002
XML
Image XML parsing0.00140.137630.0005
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00100.1001230.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs