Gossamer Forum
Home : Products : Links 2.0 : Customization :

Top Link on Category Pages

Quote Reply
Top Link on Category Pages
Hello! Smile

On the category pages theres a TOP link - can this url be changed to something.... as I do not use

the links index page with categories on it - I have built my own instead.



Thanks in advance -:)
Quote Reply
Re: [keyper-mv] Top Link on Category Pages In reply to
Look towards the bottom of nph-build.cgi, find this:

Code:
sub build_linked_title {
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section. my $input = shift;
my (@dirs, $dir, $output, $path, $last);



@dirs = split (/\//, $input);
$last = &build_clean(pop @dirs);

$output = qq| <A HREF="$build_root_url/">Top</A> :|;
foreach $dir (@dirs) {
$path .= "/$dir";
$dir = &build_clean ($dir);
$output .= qq| <A HREF="$build_root_url$path/">$dir</A> :|;
}
$output .= " $last";

return $output;
}


The part in red is naming and linking the "Top" you don't like. You can change the name and/or the url of the link.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Top Link on Category Pages In reply to
Thanks Leonard, much appreciated Smile