Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [sangiro] <%title_linked%> on review_search_results.html

Quote Reply
Re: [sangiro] <%title_linked%> on review_search_results.html In reply to
OK, here is a global that will do just what you want. Name it review_title_linked, and call it on your review pages as

<%review_title_linked($ID, 'Reviews')%>


Code:
sub {

my $link_id = shift;
my $title_comment = shift;

my $link_db = $DB->table('Links');

my $link = $link_db->select({ ID => $link_id })->fetchrow_hashref;
my ($cat_id, $cat_name) = each %{$link_db->get_categories ($link->{ID})};
my $title = Links::Build::build ('title_linked', { name => "$cat_name",
home => 1,
complete => 1 });

$title .= qq~ : <a href ="$CFG->{build_detail_url}/$link->{ID}$CFG->{build_extension}">$link->{Title}</a> : ~;
$title .= $title_comment;

return $title;

}

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Subject Author Views Date
Thread <%title_linked%> on review_search_results.html sangiro 6157 May 26, 2002, 5:09 AM
Post Re: [sangiro] <%title_linked%> on review_search_results.html
sangiro 6018 May 31, 2002, 12:53 PM
Thread Re: [sangiro] <%title_linked%> on review_search_results.html
yogi 5999 May 31, 2002, 1:24 PM
Thread Re: [yogi] <%title_linked%> on review_search_results.html
sangiro 6024 May 31, 2002, 1:34 PM
Thread Re: [sangiro] <%title_linked%> on review_search_results.html
yogi 6006 May 31, 2002, 1:47 PM
Thread Re: [yogi] <%title_linked%> on review_search_results.html
sangiro 6010 Jun 1, 2002, 12:23 AM
Thread Re: [sangiro] <%title_linked%> on review_search_results.html
yogi 5983 Jun 1, 2002, 3:57 AM
Thread Re: [yogi] <%title_linked%> on review_search_results.html
sangiro 6012 Jun 1, 2002, 7:11 AM
Post Re: [sangiro] <%title_linked%> on review_search_results.html
yogi 5968 Jun 2, 2002, 5:17 AM
Thread Re: [sangiro] <%title_linked%> on review_search_results.html
yogi 5993 Jun 3, 2002, 12:53 AM
Post Re: [yogi] <%title_linked%> on review_search_results.html
sangiro 6002 Jun 3, 2002, 9:57 AM