Gossamer Forum
Home : Products : Gossamer Links : Discussions :

title_linked in Detail Pages

Quote Reply
title_linked in Detail Pages
Greetings:

I use the tag <%title_linked%> in my Detail pages to show the path to the listing ie. categories etc. I can't work out how to format it, but believe it is hard coded somewhere. I read elsewhere this may become deprecated and I should use:-

Code:
<%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => 1, include_home => 1, link_type => 2)%>

However when I use the above code nothing shows ....

Any ideas?

Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] title_linked in Detail Pages In reply to
Hi,

Not 100% sure without looking further into it, but I believe $main_title_loop should be $title_loop

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] title_linked in Detail Pages In reply to
Thanks Andy:

Tried that .... no change. I don't know whether it could have anything to do with me using detailed_page.cgi (from Pugdog) ....

All the best,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] title_linked in Detail Pages In reply to
Hi,


Ahhh- yeah, that probably is why.

Which version are you using? Send it over to me, and I'll have a look at getting it to work for you =)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] title_linked in Detail Pages In reply to
Try this (global adapted slightly from pugdog's post here):

<div><%linked_title ($ID,$Title,'>',2,0)%></div>

then create the the linked_title global:

Code:
sub {
# ------------------------------------------------------------------
# Generate a linked title.
#
# call with <%linked_title ($LinkID, $Title, ':', 0, 0)%>
# where the first two parameters are required, and you can
# add parameters 3, 4 and 5 in order
#
my $id = $_[0];
my $input = $_[1];
my $separator = $_[2] || ':';
my $home = $_[3] || 0;
my $complete = $_[4] || 0;

my (@dirs, $dir, $output, $path, $last, $db, $top);

$db = $DB->table('Category');
$top = Links::language('LINKS_TOP') || 'Top';

my ($cat_id, $cat_name) = %{$DB->table('Links')->get_categories ($_[0])};
$input = "$cat_name/$_[1]";

@dirs = split (/\//, $input);
$last = pop @dirs unless ($complete);
$output = $home ? qq| <a href="/">$top</a>&nbsp;$separator| : '';
for (0 .. $#dirs) {
$path = "/" . $db->as_url ( join "/", @dirs[0 .. $_] );
$output .= qq| <a href="$CFG->{build_root_url}$path/$CFG->{build_index}">$dirs[$_]</a>&nbsp;$separator|;
}
if ($complete) {
chop $output; chop $output;
}
else {
$output .= " $last";
}
$output=~ s/ & / &amp; /sg;
return $output;
}

Can't remember what parameters 4 and 5 do exactly but this should get you started :).