Forums / Setup & design / How to make the link on Related objects in a drop down view fashion?

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