[ic] Category external link target
N.E.S.T. Solutions
nest_consulting at yahoo.ca
Sat Oct 29 14:44:46 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.
>
> Peter
I don't know the code enough to think of a solutions like that by myself
just yet,
but now that you guys have wrote these suggestions, I understand it
much better. This here looks like what I need.
Thanks again very much
Martin H.
More information about the interchange-users
mailing list