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?
Sep 2, 2000, 10:07 AM
Enthusiast (707 posts)
Sep 2, 2000, 10:07 AM
Post #2 of 8
Views: 2025
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
If so, have you tried using something like /$rec{'Category'}/Detailed/ in your links.html?
John
Sep 3, 2000, 10:40 AM
Enthusiast (707 posts)
Sep 3, 2000, 10:40 AM
Post #6 of 8
Views: 2001
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",
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",
Sep 3, 2000, 11:39 AM
User (53 posts)
Sep 3, 2000, 11:39 AM
Post #7 of 8
Views: 1984
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!