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

Add a link Problem

Quote Reply
Add a link Problem
When I build the pages the program builds the "add a link" and "modify a link" pages with the following:

http://www.teamgroundzero.com/links/www.teamgroundzero.com/cgi-bin/add.cgi

It is doubling. Why is that? I tried changing the link.cfg file but to no avail
Quote Reply
Re: Add a link Problem In reply to
Those links are in the menu, not the links.cfg file. If you are using templates, there is a menu in each template file that should be checked. Otherwise, check site_html.pl for $site_menu and double check the URLs you are using. It should look like this:

Code:
$site_menu = qq~
<p><small class="menu">|
<a class="menulink" href="$build_root_url">Home</a> |
<a class="menulink" href="$build_add_url">Add a Resource</a> |
<a class="menulink" href="$build_modify_url">Modify a Resource</a> |
<a class="menulink" href="$build_new_url">What's New</a> |
<a class="menulink" href="$build_cool_url">What's Cool</a> |
<a class="menulink" href="$build_ratings_url">Top Rated</a> |
<a class="menulink" href="$build_email_url">Email Updates</a> |
<a class="menulink" href="$build_jump_url?ID=random">Random Link</a> |
<a class="menulink" href="$build_search_url">Search</a> |
</small></p>
~;

In the templates, it should look like this:

Code:
<p><small class="menu">|
<a class="menulink" href="<%build_root_url%>">Home</a> |
<a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> |
<a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> |
</small></p>

If your URLs are correct in links.cfg, it should work.

I hope this helps.