Gossamer Forum
Home : Products : Links 2.0 : Customization :

Internal links & lastlink on homepage

Quote Reply
Internal links & lastlink on homepage
Here's a doozie for script whizz ppl. I have internal links to detailed view and have included the Lastlink mod on homepage but the hyperlink goes to/...root.../Detailed/13.html instead of to the category in which the page is situated. Naturally, the Lastlink mod calls the link.html codes which is normally and external link. Does anyone know how I can get it to work on internal links?

Quote Reply
Re: Internal links & lastlink on homepage In reply to
Let me get this right. Are you using junko's mod from http://www.gossamer-threads.com/p/95005?
If so, have you tried using something like /$rec{'Category'}/Detailed/ in your links.html?

John

Quote Reply
Re: Internal links & lastlink on homepage In reply to
I had to delete the /$rec{'Category'}/ part of the hash in order for the detailed.html to hyperlink correctly from the Categories and New pages. With the hash the link became /...root.../Category/Category/Detailed/13.html = 404.

Quote Reply
Re: Internal links & lastlink on homepage In reply to
Ehhhh ... so, have you solved your problem now then, or?? I'm confused ... could you post a link to your site, so I can see what you are trying to do?

Quote Reply
Re: Internal links & lastlink on homepage In reply to
homepage lastlink @ http://www.bizsales.co.nz/nz/index.html

Quote Reply
Re: Internal links & lastlink on homepage In reply to
Well, I'm afraid your problem is not with LastLink, but with the the internal linking mod, which to me seems incomplete.
I see the lastlink doesn't link properly, but there is also problems with for example your search, which gives results like http://www.bizsales.co.nz/cgi-bin/Detailed/7.html
and in your Whats New, with
http://www.bizsales.co.nz/nz/New/Detailed/8.html

The problem is that you use <a href="Detailed/<%ID%>.html> in your link.html. Hereby, all links becomes relative, not absolute which they must.

The internal link mod must be supplemented with some changes in site_html_link, specifically in:
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",

Try changing it to:
detailed_url => "$db_detailed_url/$rec{'Category'}/$rec{'ID'}$build_extension",

Quote Reply
Re: Internal links & lastlink on homepage In reply to
Thanks, amazing how the obvious can alude one. I added the hash you suggested and changed the link.html to <ul><li><font face="arial size="2"><a href="<%build_root_url%>/<%Category%>/Detailed/<%ID%>.html"><%Title%></a> and its working fine now including the lastlink mod. I really appreciate it. So how are you with the upload mod? Thats my last headache to fix...ugh!





Quote Reply
Re: Internal links & lastlink on homepage In reply to
Glad y'all figured it out. I haven't been around much lately and haven't had much time to come up with any answeres. I'll make the changes to my internal links mod to avoid future headaches and confusion.

--Drew