eZ Community » Forums » General » Link directly to URLs listed in Link...
expandshrink

Link directly to URLs listed in Link datatype

Link directly to URLs listed in Link datatype

Friday 18 July 2003 11:26:59 pm - 2 replies

I need to add some external links to my global site navigation and am running into some problems. I have created a folder with a node id of 474 and created several objects of the 'Link' datatype within it. But I cannot figure out a way to link directly to the external site, bypassing the page that displays the link description. My latest failed attempt follows:
{let Related=fetch(content,list,hash(parent_node_id,474))}
{section name=RelatedSite loop=$Related}
<a href="{$RelatedSite:item.link}">{$RelatedSite:item.name}</a>
{/section}
{/let}

But this doesn't populate the href...

I'm lost on this one and could use a nudge in the right direction!

Alex

Thursday 24 July 2003 6:29:42 pm

Anyone?

I can't figure out a way. When I use {$node.object|attribute(show, 1)} of {$:item.object|attribute(show, 1)} While it shows the class_name of "link" it doesn't list a value for it even though I know it has been filled in.

Rather confused,

Alex

Friday 22 August 2003 9:12:29 pm

I figured out how to do it:

{let Related=fetch(content,list,hash(parent_node_id,474,sort_by,array(array(name))))}
{section name=RelatedSite loop=$Related}
<a href="{$:item.data_map.link.content}">{$:item.name}</a>
{/section}
{/let}

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from