Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [richonmaui] How can I put link category on the detailed page?

Quote Reply
Re: [richonmaui] How can I put link category on the detailed page? In reply to
Ok, here's something that works to show more than one category, but it's not in a breadcrumb format - just each final category:
Code:
sub {
require Links::Build;
my $id = shift;
my $cat_db = $DB->table('Category');
my $catlink = $DB->table('CatLinks','Category');
$catlink->select_options ('ORDER BY Full_Name ASC');
my @names = $catlink->select ({ LinkID => $id }, ['Full_Name'])->fetchall_list;

my @link_cats;
for (@names) {

push @link_cats, { cat_name => Links::Build::build ('title_unlinked',$_), cat_url => $cat_db->as_url($_)};
}
return { link_cats => \@link_cats };
}
This is called on the page by:
Code:
<%get_link_cats($ID)%>
<%loop link_cats%>
<a href="<%build_root_url%>/<%cat_url%>"><%cat_name%><br>
<%endloop%>

Any way to adapt this to show the breadcrumb format and multiple category links?

Thanks

Rich
Subject Author Views Date
Thread How can I put link category on the detailed page? richonmaui 11604 Oct 20, 2004, 8:05 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11477 Oct 21, 2004, 12:09 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11317 Oct 21, 2004, 2:24 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11352 Oct 21, 2004, 2:34 AM
Thread Post deleted by richonmaui
richonmaui 11302 Oct 21, 2004, 2:40 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11376 Oct 21, 2004, 2:46 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11327 Oct 21, 2004, 2:57 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
richonmaui 11334 Oct 21, 2004, 3:29 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11318 Oct 21, 2004, 4:03 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11488 Oct 21, 2004, 12:11 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11417 Oct 21, 2004, 3:25 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11244 Oct 21, 2004, 3:55 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11318 Oct 21, 2004, 4:06 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11256 Oct 21, 2004, 4:27 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11273 Oct 21, 2004, 4:36 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11241 Oct 21, 2004, 4:56 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
fmp 11202 Jan 16, 2005, 1:30 AM
Post Re: [fmp] How can I put link category on the detailed page?
fmp 11112 Jan 17, 2005, 1:06 PM
Post Re: [afinlr] How can I put link category on the detailed page?
MJ_ 10849 Jul 29, 2006, 3:33 AM