In Reply To:
Try this:
Code:
sub {
my $tags = shift;
my $catid = $DB->table('CatLinks')->select('CategoryID', { LinkID => $tags->{ID} })->fetchrow;
my ($full_name) = $DB->table('Category')->select('Full_Name', { ID => $catid })->fetchrow;
require Links::Build;
my $title = Links::Build::build('title_linked', $full_name);
return $title;
}
I haven't tested it, but it should work.
Very good, thank you. This returns a linked string, for example "Home: Category: Subcategory" where Home and Category are linked. Is it possible to:
1. Have " > " be used instead of ": "
2. Either link the whole string (i.e., including "Subcategory") or unlink everything?
Thanks! I owe you a beer!
EDIT: I changed the global to:
Code:
sub {
my $tags = shift;
my $catid = $DB->table('CatLinks')->select('CategoryID', { LinkID => $tags->{ID} })->fetchrow;
my ($full_name) = $DB->table('Category')->select('Full_Name', { ID => $catid })->fetchrow;
return $full_name;
}
And that gives me "Catgegory/Subcategory"
That works fine for me, unless there is an easy way to link all of Home, Category and Subcategory using ">"
Thanks again!