Elxis CMS Forum

Support => Technical support => Topic started by: yiannisK on February 21, 2009, 13:57:04

Title: Target _blank in Related Items
Post by: yiannisK on February 21, 2009, 13:57:04
I am trying to get
Code: [Select]
target="_blank" and not _self page link

in the related items of a content item.

What i have to change?!
Thanks
Title: Re: Target _blank in Related Items
Post by: Farhad Sakhaei on February 21, 2009, 14:14:29
File : components/com_content/content.html.php

Replace :
Code: [Select]
echo '<a href="'.trim($link[1]).'" title="'.$link[0].'"'.$target.'>'.$link[0].'</a><br />'._LEND;
With :

Code: [Select]
echo '<a href="'.trim($link[1]).'" title="'.$link[0].'" target="_blank">'.$link[0].'</a><br />'._LEND;
Title: Re: Target _blank in Related Items
Post by: yiannisK on February 21, 2009, 14:18:20
 ;)

Thanks Farhad
Title: Re: Target _blank in Related Items
Post by: Farhad Sakhaei on February 21, 2009, 14:18:46
Your welcome