Friday 18 August 2006 7:50:21 am
Hello everybody, When fetching related objetcs, I get one or several links. This is the corresponding code:
{def $objects=fetch( 'content', 'related_objects',
hash( 'object_id', $node.object.id,'all_relations', true()) )}
{foreach $objects as $object}
<a href={$object.main_node.url_alias|ezurl}>{$object.name|wash()}</a>
{/foreach}
In my site, related objects are mainly PDF or Microsoft Word documents.
My question is: is it possible, on clicking one link, to immediatly open the document without first browsing into ezpublish Media (or Files) folder ? Thanks for all idea.
|