Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to change <%title_linked%> tag

Quote Reply
How to change <%title_linked%> tag
I use my own index page under root directory as the links index page. My links html pages are under Resource directory. How can I change the <%title_linked%> tag so the Home hyperlink will point to my index page under the root directory in stead of Resource diretory?

Thanks for any help.

Yanz

Http://www.biomedgate.com
****Portal to life****
Quote Reply
Re: How to change <%title_linked%> tag In reply to
Hello

there is an definition for it in build.pm in your admin directory

it is this subroutine:

sub build_title_linked {
# ------------------------------------------------------------------
# Generate a linked title.
#
my $input = shift;
my $complete;
if (ref $input) {
$complete = $input->{complete} || 0;
$input = $input->{name};
}
my (@dirs, $dir, $output, $path, $last, $db, $top);

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

@dirs = split (/\//, $input);
$last = pop @dirs unless ($complete);
$output = qq| <A HREF="$CFG->{build_root_url}/$CFG->{build_index}" onMouseOver="window.status='$top.'; return true;" onMouseOut="window.status='';">$top</A> :|;
for (0 .. $#dirs) {
$path = "/" . $db->as_url ( join "/", @dirs[0 .. $_] );
$output .= qq| <A HREF="$CFG->{build_root_url}$path/$CFG->{build_index}" onMouseOver="window.status='$dirs[$_].'; return true;" onMouseOut="window.status='';">$dirs[$_]</A> :|;
}
if ($complete) {
chop $output; chop $output;
}
else {
$output .= " $last";
}
return $output;
}
END_OF_SUB

The top/home is build_root_url
i think you should modify it direct in build.pm

Cheers,

Eric Holtkamp

Quote Reply
Re: How to change <%title_linked%> tag In reply to
Thanks Eric, maybe that's the only way.

Yanz

Http://www.biomedgate.com
****Portal to life****