Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Direct Linking Categories

Quote Reply
Direct Linking Categories
I've searched around the forums and the net for a way to link a category to something else, and I haven't found anything yet. So I'm asking. :)

I'd like to be able to link a category to another URL/site. Is there anyway to do this?



---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Ice Man] Direct Linking Categories In reply to
Not that I know of. Your best bet is to so something like this in subcategory.html ;

Code:
<%if ID == 1234%>
<a href="http://www.site.com"><%Title%></a>
<%else%>
... normal category codes here....
<%endif%>

That should work.. but it does require editing the template each time you want to change the URL etc.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
That will work just fine, let me try it out.

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
Ok, that semi worked.

I've got a main category, then sub categories.

Blah

- blah1

- blah2

Blah1 can link normally, and list all the links in that directory, but I want Blah2 to link to lets say google.com. How would I do that?

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network

Last edited by:

Ice Man: Sep 2, 2003, 12:32 PM
Quote Reply
Re: [Ice Man] Direct Linking Categories In reply to
What is the category ID for 'blah1' ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
43

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Ice Man] Direct Linking Categories In reply to
Just use something like;


Code:
<%if ID == 43%>
<a href="http://www.site.com"><%Title%></a> <%else%>
... normal category codes here....
<%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
I did that, but it wont check the link to the actual directory. To the index.html file. I want to change that link to another URL.

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Ice Man] Direct Linking Categories In reply to
Can you paste what you have in subcateogry.html ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
Code:
<dl>
<dt><strong><a class="link" href="<%URL%>"><%Short_Name%><%if Related%>@<%endif%></a></strong> <span class="numlinks">(<%Number_of_Links%>)</span>
<%if Has_New_Links eq 'Yes'%><sup class="new">new</sup><%endif%>
<%if Has_Changed_Links eq 'Yes'%><sup class="new">update</sup><%endif%>
</dt>
<%if Description%><dd><span class="descript"><%Description%></span></dd><%endif%>
</dl>

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
Ok, I got it. Sorry about that.

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network
Quote Reply
Re: [Ice Man] Direct Linking Categories In reply to
Got it working?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Direct Linking Categories In reply to
Yeah I got it working. Typo on my part. :)

Thanks, and sorry for the trouble.

---------------------------
Administrator
Webmaster Directory Network
Webmaster Stop
Webmaster Focus Network