[ic] Category external link target
Kevin Walsh
kevin at cursor.biz
Fri Oct 28 21:41:14 EDT 2005
N.E.S.T. Solutions [nest_consulting at yahoo.ca] wrote:
> I will definitely look into these files to modify as needed cause I
> will have quite a few of those links, that's why I'd prefer to have it
> automatic instead of having to put the code in link_template everytime.
>
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>
All untested, of course.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list