Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Double URL's with Templates?

Quote Reply
Double URL's with Templates?
Has anyone come accross the problem of the directory links becoming double URL's when using templates. Everything works fine if I do a build without templates, but with them I get a link that looks like:

http://www.mycolinks.com/.../links/jump.cgi?ID=3 to every link in the directory except the menu links.

I've looked through the forum but haven't seen the problem mentioned. Thanks for any help.
Quote Reply
Re: [myconet] Double URL's with Templates? In reply to
Triple check all your variable configurations in the links.cfg file and triple check your codes in the link.html template file.

You should be using the following in the link.html file:

<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

And your $db_cgi_url variable in the links.cfg file should look like the following:

$db_cgi_url = "http://www.somedomain.com/cgi-bin/links";

(As stated clearly in the config file, do NOT use trailing slashes.)
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Double URL's with Templates? In reply to
Thanks very much for your help. The problem was in the link.html file. I transfered the file to a diferent directory in Deamweaver and it added the extra info to the line:

<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

it looked like:

<a class="link" href="../../../../links2/<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
Quote Reply
Re: [myconet] Double URL's with Templates? In reply to
You have to be _really careful with editing your files with offline editors, particularly Dreamweaver (not Ultradev or MX, but the regular older versions of it) and Front Page, since they are notorious for inserting extraneous codes.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Double URL's with Templates? In reply to
I will second that, MS Frontpage whatever version, is a nightmare, I found a very common problem with MS, is that it likes to remove tags or comment them out, very nice of them...

Word Pad, seems to be my best solution
Quote Reply
Re: [stu2000] Double URL's with Templates? In reply to
you might want to try one of these

http://www.fixedsys.com/context/

or

http://www.editplus.com/



either are better than wordpad


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Double URL's with Templates? In reply to
While this is a bit off-topic (read the new forum guidelines in the Announcement forum), I would recommend using TextPad:

http://www.textpad.com/

BTW: Offline text editors have been discussed quite a few times in the forums, search for text editor for more info.
========================================
Buh Bye!

Cheers,
Me