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 7029 Oct 20, 2004, 8:05 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6894 Oct 21, 2004, 12:09 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6825 Oct 21, 2004, 2:24 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6848 Oct 21, 2004, 2:34 AM
Thread Post deleted by richonmaui
richonmaui 6785 Oct 21, 2004, 2:40 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6888 Oct 21, 2004, 2:46 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6828 Oct 21, 2004, 2:57 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
richonmaui 6832 Oct 21, 2004, 3:29 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6818 Oct 21, 2004, 4:03 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6840 Oct 21, 2004, 12:11 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6890 Oct 21, 2004, 3:25 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6759 Oct 21, 2004, 3:55 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6829 Oct 21, 2004, 4:06 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6749 Oct 21, 2004, 4:27 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6778 Oct 21, 2004, 4:36 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6755 Oct 21, 2004, 4:56 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
fmp 6702 Jan 16, 2005, 1:30 AM
Post Re: [fmp] How can I put link category on the detailed page?
fmp 6644 Jan 17, 2005, 1:06 PM
Post Re: [afinlr] How can I put link category on the detailed page?
MJ_ 6385 Jul 29, 2006, 3:33 AM