I set the links.cfg script to use detailed pages. Now how can I link the listings where there should be http:// straight to those details pages for each listing?
Oct 3, 2000, 7:36 PM
Veteran (17240 posts)
Oct 3, 2000, 7:36 PM
Post #2 of 14
Views: 4308
If you searched for Detailed Pages, you would've found quite a few Threads that provide explanations and codes for doing this....
Anyway...as mentioned before...
You add the following link codes in your link.html file:
<a href="<%build_detail_url%>/<%ID%><%build_extension%>">Detailed Pages</a>
Make sure that you have defined build_extension as a global variable in the %globals hash in the site_html_templates.pl file, like the following:
build_extension => $build_extension
Regards,
Eliot Lee
Anyway...as mentioned before...
You add the following link codes in your link.html file:
Code:
<a href="<%build_detail_url%>/<%ID%><%build_extension%>">Detailed Pages</a>
Make sure that you have defined build_extension as a global variable in the %globals hash in the site_html_templates.pl file, like the following:
Code:
build_extension => $build_extension
Regards,
Eliot Lee
Oct 4, 2000, 5:26 PM
Novice (42 posts)
Oct 4, 2000, 5:26 PM
Post #4 of 14
Views: 4268
Nevermind, I was able to detect where the problem was. Thanks for all your help, it worked like a charm.
All though this is off topic, but I need help with the non-english characters. I installed the mod for version 2 but I'm still not able to have a "-" or a "&" in my category names. Can you help please?
All though this is off topic, but I need help with the non-english characters. I installed the mod for version 2 but I'm still not able to have a "-" or a "&" in my category names. Can you help please?
Oct 10, 2000, 8:59 PM
Veteran (17240 posts)
Oct 10, 2000, 8:59 PM
Post #6 of 14
Views: 4245
Right...and you need to have the following global variable defined:
build_detail_url => $build_detail_url
Remember that if this is your last global variable in the %globals hash, then you need to add a comma at the end of the precedding line.
Also, you could simply use the following link:
<a href="<%build_root_url%>/Detailed/<%ID%>.shtml">Detailed Page</a>
HOWEVER, if you change the Detailed directory or build_extension, then you will have to continually edit the link.html to update the correct directory and extension...that is why defining global variables is MUCH easier and more manageable in the long-term.
Regards,
Eliot Lee
Code:
build_detail_url => $build_detail_url
Remember that if this is your last global variable in the %globals hash, then you need to add a comma at the end of the precedding line.
Also, you could simply use the following link:
Code:
<a href="<%build_root_url%>/Detailed/<%ID%>.shtml">Detailed Page</a>
HOWEVER, if you change the Detailed directory or build_extension, then you will have to continually edit the link.html to update the correct directory and extension...that is why defining global variables is MUCH easier and more manageable in the long-term.
Regards,
Eliot Lee
Oct 11, 2000, 4:58 PM
Novice (11 posts)
Oct 11, 2000, 4:58 PM
Post #9 of 14
Views: 4196
The Detailed Page works perfectly, but not the jump.cgi.
If I leave "http://" in the URL field, it jumps to Detailed page OK.
But, if I remove "http://" in the URL field, it shows error
Error: Can't find link id: (ID#)
I set URL field optional. I don't want to display "http://" in the Detailed page, if the link does not have a website.
Any way to fix this problem? Please help
Thanks
Senaite
If I leave "http://" in the URL field, it jumps to Detailed page OK.
But, if I remove "http://" in the URL field, it shows error
Error: Can't find link id: (ID#)
I set URL field optional. I don't want to display "http://" in the Detailed page, if the link does not have a website.
Any way to fix this problem? Please help
Thanks
Senaite
Dec 12, 2000, 11:16 AM
Novice (39 posts)
Dec 12, 2000, 11:16 AM
Post #11 of 14
Views: 4156
My detailed pages are built fine but when I try to add this to my link.html file:
<a href="<%build_detail_url%>/<%ID%><%build_extension%>">info</a>
I redceived a build extension error as described above. I then added the build_extension => $build_extension to the globals section at the top of the site_html_templates.pl and received the following error:
Error including libraries: syntax error at /web1/tr100538/cgi-bin/links/admin/site_html_templates.pl line 40, near "$build_extension site_title" Compilation failed in require at /web1/tr100538/cgi-bin/links/admin/nph-build.cgi line 33. Make sure they exist, permissions are set properly, and paths are set correctly.
Any help would be appreciated.
<a href="<%build_detail_url%>/<%ID%><%build_extension%>">info</a>
I redceived a build extension error as described above. I then added the build_extension => $build_extension to the globals section at the top of the site_html_templates.pl and received the following error:
Error including libraries: syntax error at /web1/tr100538/cgi-bin/links/admin/site_html_templates.pl line 40, near "$build_extension site_title" Compilation failed in require at /web1/tr100538/cgi-bin/links/admin/nph-build.cgi line 33. Make sure they exist, permissions are set properly, and paths are set correctly.
Any help would be appreciated.
Dec 12, 2000, 11:46 AM
Veteran (17240 posts)
Dec 12, 2000, 11:46 AM
Post #13 of 14
Views: 4118
You need to have commas AFTER each of the values you add in the GLOBAL HASH (as stated quite a few times in these forums) EXCEPT for the last value....
EXAMPLE:
build_extension => $build_extension,
build_detail_url => $build_detail_url,
site_title => $build_site_title
See the commas??? If not, then look again at the bolded blue codes.
Regards,
Eliot Lee
EXAMPLE:
Code:
build_extension => $build_extension,
build_detail_url => $build_detail_url,
site_title => $build_site_title
See the commas??? If not, then look again at the bolded blue codes.
Regards,
Eliot Lee