This might work;
my $title_linked = $_[0];
my $ID = $_[1];
my $cat_details = $DB->table('Category')->select( { ID => $ID } )->fetchrow_hashref;
my $keyword1 = $cat_details->{Keyword1};
my $keyword2 = $cat_details->{Keyword2};
my ($sliced1,$sliced2) =~ m|\Q<a href="\E(.*?)\Q">\E(.*?)\Q</a>\E|i;
my $new_linked = qq|<a href="$sliced1">$sliced2|;
$new_linked .= " $keyword1" if $keyword1;
$new_linked .= " $keyword2" if $keyword2;
$new_linked .= "</a>";
return $new_linked;
}
<%global_name($title_linked,$ID)%>
... Will only work on category pages (for obvious reasons =)).
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
sub { my $title_linked = $_[0];
my $ID = $_[1];
my $cat_details = $DB->table('Category')->select( { ID => $ID } )->fetchrow_hashref;
my $keyword1 = $cat_details->{Keyword1};
my $keyword2 = $cat_details->{Keyword2};
my ($sliced1,$sliced2) =~ m|\Q<a href="\E(.*?)\Q">\E(.*?)\Q</a>\E|i;
my $new_linked = qq|<a href="$sliced1">$sliced2|;
$new_linked .= " $keyword1" if $keyword1;
$new_linked .= " $keyword2" if $keyword2;
$new_linked .= "</a>";
return $new_linked;
}
<%global_name($title_linked,$ID)%>
... Will only work on category pages (for obvious reasons =)).
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!