Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Sub Categories (Again and Again and Again and....)

Quote Reply
Sub Categories (Again and Again and Again and....)
Hello Everybody,
I have already installed Links and it is functioning perfectly.
But the thing is that I want ALL of the sub categories to display on the main page ONLY.
For example: Take a look at www.yahoo.com, they have all the sub categories displayed on their main page.
Whereas if you visit www.metacrawler.com, they haven't got sub categories displayed.

Can anybody tell me how to do this or which mod should I use?????
Please respond Urgently.

The Khyber Gateway (http://www.khyber.org)
Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
I'm not sure if there is a sucessful mod that will do this automatically, but I found the easiest way to do this is to add them in manually!

Instead of having Links build your homepage take a copy of the one it's already created and edit that manually to include the 'sub-cat' links wherever you like (have a look at my site as an example of this!).

Once you've got it looking how you like, you can turn 'OFF' the homepage building by editing nph-build.cgi and putting a pound sign in front of &build_home_page(); in sub build_all, like so:

# &build_home_page();

This stops Links overwriting your homepage file, and allows you to do any updates to it as you would any other HTML page.

Hope this helps.

All the best
Shaun

Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
Thanks Brother,
You are truly a genious,
Have a look at it at http://www.khyber.org
I hope to repay you back sometimes :)

The Khyber Gateway (http://www.khyber.org)
Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
Or you could simply add links in the Description field in the Category table...

Code:

<a href="/Main_Category/Sub_Category/">Sub_Category</a>


The code hack that was written by Widgetz for dynamically showing subcategories like Yahoo only works on versions prior to v.1.11.

Regards,

Eliot Lee
Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
khybergateway,

I'm glad it worked out for you - looks like you've been busy adding lots of new sub-cats to your homepage Smile

All the best
Shaun

Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
Has anyone developed the coding for Yahoo Subcategories for Links SQL 1.13? I would really like to use it becuase typing in all the subcategories is sorta a pain. Didn't AntrhoRules create something? Thanks and God bless!

Daniel
-http://www.christian-search.net
-http://www.csnhost.com
Quote Reply
Re: Sub Categories (Again and Again and Again and....) In reply to
I tried the following coding and it worked fine for me (look at http://www.kommunalweb.de/).

http://www.gossamer-threads.com/perl/forum/showthreaded.pl?Cat=&Board=LSQLDisc&Number=70519

Susanne