How to make the link on Related objects in a drop down view fashion?

Author Message

Jorge estévez

Sunday 11 April 2004 6:40:22 am

Hello, this is what I have at the momment:

It works fine and displays the related objects in a drop down menu fashion.

I would like to have a link that will jump to the object once I press the "Go" word (user must select the object from the drop down)

Cannot figure out how to write the link <a href={$:item.contentobject|ezurl}>Go</a>

Take a look at the code:

<h3>{"Related products"|i18n("design/shop/layout")}</h3>
{let related_objects=$node.object.related_contentobject_array}

{section show=$related_objects}
<h4>{"We reccomend"|i18n("design/shop/layout")}</h4>

<select name="ContentObjectAttribute_data_object_relation_id_{$attribute.id}">
{section name=ContentObject loop=$related_objects show=$related_objects}
<li>
<option value="{$:item.contentobject_id}">{$:item.name|wash}</option>
</li>
{/section}
</select>

<a href={$:item.contentobject|ezurl}>Go</a>
{/section}
{/let}

Thanks, joe!

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.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 19 2025 04:32:20
Script start
Timing: Jan 19 2025 04:32:20
Module start 'layout'
Timing: Jan 19 2025 04:32:20
Module start 'content'
Timing: Jan 19 2025 04:32:22
Module end 'content'
Timing: Jan 19 2025 04:32:22
Script end

Main resources:

Total runtime1.3900 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.0095 592.1719152.6875
Module start 'layout' 0.00950.0039 744.859439.5078
Module start 'content' 0.01331.3738 784.3672437.8984
Module end 'content' 1.38710.0028 1,222.26568.0938
Script end 1.3900  1,230.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3043160.0003
Check MTime0.00150.1094160.0001
Mysql Total
Database connection0.00180.126210.0018
Mysqli_queries1.337396.2103460.0291
Looping result0.00060.0397440.0000
Template Total1.346596.920.6733
Template load0.00300.216820.0015
Template processing1.343596.654420.6718
Template load and register function0.00020.016110.0002
states
state_id_array0.00130.090910.0013
state_identifier_array0.00120.088620.0006
Override
Cache load0.00240.1721240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.057610.0008
Fetch class attribute name0.00070.047210.0007
XML
Image XML parsing0.00010.008110.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00120.0836100.0001
String conversion0.00000.001040.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/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
3content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs