Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Hiding the URL of a Link

Quote Reply
Hiding the URL of a Link
Is there a way to hide the actual link from showing live?

It currently looks likes this --

Title
http://www.xxxx.com/xxxxxx
blah blah blah
Review It Rate It Bookmark It

I don't like having the actual link exposed (http://www.xxx.com/xxxxx) I'd rather just have it within the Title. How do I change things so it will show like this? Thanks again, leeann

Last edited by:

leeann: Sep 10, 2006, 8:39 PM
Quote Reply
Re: [leeann] Hiding the URL of a Link In reply to
In your admin goto build->user templates and select the 'link.html' from the drop down. The URL is printed right after the link. You can either delete it or change it to <%db_cgi_url%>/jump.cgi?ID=<%ID%>, which is what it prints in the title (in order to track hits).

Hope this helps,

- Jonathan
Quote Reply
Re: [jdgamble] Hiding the URL of a Link In reply to
Thank you for the suggestion, but I must not be changing it correctly. The URL is still showing up. I want the Title to be linked, I just don't want the link's URL to show under the Title. I'm confused as to where to change the <%db_cgi_url%>/jump.cgi?ID=<%ID%> part. I see it in a few places. Thanks again. Leeann
Quote Reply
Re: [leeann] Hiding the URL of a Link In reply to
This is where links prints the url:

<%set eURL = escape_html $URL%> <-- for regular pages
<%escape_html URL%> <-- for search pages

You'll see it is contained in an if statment for both cases.

Hope this helps,

- Jonathan
Quote Reply
Re: [jdgamble] Hiding the URL of a Link In reply to
Change it to
<a href="http://<%URL%>">

Remove the other link to the URL from the template.
Quote Reply
Re: [Alba] Hiding the URL of a Link In reply to
I'm still not getting it.

I go to build->user templates and select the 'link.html' from the drop down.
Then I replace <%set eURL = escape_html $URL%>
with
<%db_cgi_url%>/jump.cgi?ID=<%ID%>
or
<a href="http://<%URL%>">
and hit Save, right?
I've tried both and the URL is still being displayed under the Title of the Link.

Any idea what I am doing wrong?

Thanks (again and again)
leeann
Quote Reply
Re: [leeann] Hiding the URL of a Link In reply to
Load Link.html again, and under File Information - Status - Click Restore... (I don't know what changes you made).

To make it easy, just delete thise whole statement:

Code:

<%if highlight%><%set equery = escape_html $query%><%set eURL = escape_html $URL%><%Links::Tools::highlight($eURL, $equery)%><%else%><%escape_html URL%><%endif%>


That should do it,

- Jonathan
Quote Reply
Re: [jdgamble] Hiding the URL of a Link In reply to
That did it. Thanks!