[ic] Category external link target

Peter peter at pajamian.dhs.org
Fri Oct 28 22:06:12 EDT 2005

On 10/28/2005 06:41 PM, Kevin Walsh wrote:
> Well, in the "bar_link", you can probably just add a line like this:
> 	$record->{EXPAND} = $expand;
> 	$record->{URL} = $url;
> +	$record->{TARGET} = qq{target="$record->{target}"} if $record->{target};
> You'd have to create a "target" column, of course, and you'd have to
> change the default "link_template" to something like this:
>     <a href="$URL$" $TARGET$ class="barlink">$ANCHOR$</a>

Not positive, but I think it would work just to add a target column and do:
<a href="$URL$" target="$target$" class="barlink">$ANCHOR$</a>

...for the default link_template.  No changes needed to bar_link.

Of course if what the OP wants is to always have a target of "_blank" 
for external links but not for any other link types then it would be 
best to modify bar_link to do that, imo.


More information about the interchange-users mailing list