[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Category external link target


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.

Peter
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.