Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Editing Home link....

Quote Reply
Editing Home link....
Hi. I was wondering if there was a way (without having to hack the code) to change the URL that you are sent to when clicking on (for example: Home : Testing). When you click on 'Home' you are taken to the index.html file, which is defined by home.html. However, I want it to point to my main domain (ace-instaer.com). Anyone know how, or if, this is possible?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Editing Home link.... In reply to
You could do a global and call it on your category.html template instead of <%title_linked%>...

Would require some coding, but no hacking of scripts.

--
Matt G
Quote Reply
Re: [mglaspie] Editing Home link.... In reply to
Cool. Would you know how to do that? Im a complete Links SQL newbie Frown

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Editing Home link.... In reply to
If you look at the code in admin/Links/Build.pm around line 812, you'll see something like:
Code:
$output = qq| <a href="$CFG->{build_root_url}/$CFG->{build_index}">$top</a> :|;
You can do two things (both aren't fabulous ways of doing it).
1) The ugly way. Change that code to point it to wherever you want.
2) Slightly less ugly way. Create a global like this:
Code:
sub {
my $vars = shift;
my $title_linked = $vars->{title_linked};
$title_linked =~ s|^\s+<[^>]+>|<a href="http://www.ace-installer.com">|;
return $title_linked;
}

And use whatever you name that global instead of <%title_linked%>.



Adrian
Quote Reply
Re: [brewt] Editing Home link.... In reply to
Right, something by way of #2 is what I had in mind... just substitute via regex the link to the LinksSQL "home" page with a link to your site home page.

Smile
--
Matt G