Related Objects - Choosing from a dropdown instead of using browse

Author Message

Bruce Morrison

Thursday 26 June 2003 8:24:41 pm

I have a content type - product - that has a related object as an attribute. The related object should only be of a specific class - provider.

All providers reside under a known node. I want to have the edit screen for product display a select/dropdown of the providers and for the user to be able to select from this instead of using the default browse page. The chosen provider should then be saved as the related object.

I've had a look at the templates and generated HTML for this attribute type but it seems that the "magic" (saving the related object as an attribute) is done as part of the browse screen. It seems that it is not possible to achieve what I want by simply changing the edit template for the product class.

Any ideas?

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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:51:42
Script start
Timing: Jan 18 2025 15:51:42
Module start 'layout'
Timing: Jan 18 2025 15:51:42
Module start 'content'
Timing: Jan 18 2025 15:51:43
Module end 'content'
Timing: Jan 18 2025 15:51:43
Script end

Main resources:

Total runtime0.8755 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 593.5859152.6563
Module start 'layout' 0.00740.0040 746.242239.5078
Module start 'content' 0.01140.8622 785.7500467.3203
Module end 'content' 0.87360.0018 1,253.07038.0938
Script end 0.8754  1,261.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4419160.0002
Check MTime0.00140.1589160.0001
Mysql Total
Database connection0.00150.176910.0015
Mysqli_queries0.831795.0046460.0181
Looping result0.00050.0535440.0000
Template Total0.839295.920.4196
Template load0.00200.230320.0010
Template processing0.837195.620320.4186
Template load and register function0.00010.011710.0001
states
state_id_array0.00220.252210.0022
state_identifier_array0.00150.175920.0008
Override
Cache load0.00160.1810110.0001
Sytem overhead
Fetch class attribute can translate value0.00110.123110.0011
Fetch class attribute name0.00070.081920.0004
XML
Image XML parsing0.00050.054710.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.0877160.0000
String conversion0.00000.001540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs