| Tuesday 04 May 2010 12:31:50 am 
                                                                 Hello Robin, Thanks a lot for that link, I have now solved my problem! 
The original code only printed the {$content} of every single URL but with that code I managed to tweak it.This is content/datatype/ezxmltags/link.tpl file (overriden in my own extension)
 {* Begin Code *} --------------------------------------------------------------------------------------------------------------------------------------------------------- {* Define values we are checking for: type, content, attributes and URL *} 
{def $protocols=array('http', 'file', 'ftp', 'mailto', 'https')$mycontent = ""
 $attribute = ""
 $url = false()
 }
 
{* Fetch content from path *}{set $mycontent=fetch(content, node, hash(node_path, $href))}
 {* Verify the path URL and identify the source *}
 {switch match=$href}
 
 {* If the path is a file object, print the direct URL to file for download *}
 {case match=$mycontent.object.class_identifier|eq('file'))}
 {set $attribute=$mycontent.data_map.file}
 {set $url=concat( '/content/download/', $attribute.contentobject_id, '/', $attribute.id,'/version/', $attribute.version , '/file/', $attribute.content.original_filename|urlencode )}
 <a href={$url|ezurl} target="_blank">{$attribute.object.name}</a>
 {/case}
 
 {* If no match was made, print the default URL link *}
 {case}
 <a href={$href|ezurl}
 {if $id} id="{$id}"{/if}
 {if $title} title="{$title}"{/if}
 {if $target} target="{$target}"{/if}
 {if $classification} class="{$classification|wash}"{/if}
 {if and(is_set( $hreflang ), $hreflang)} hreflang="{$hreflang|wash}"{/if} >
 {$content}
 </a>
 {/case}
 {/switch}
 
---------------------------------------------------------------------------------------------------------------------------------------------------------{* End Code *}
 |