Gossamer Forum
Quote Reply
AlphaBar
This has been talked about before but i wanted to bring it up again now things have quietend down a bit.

What do i want?

an alphabar is a listing like:
http://www.dmoz.com/Arts/Movies/Titles/

compared to the mess that is
http://www.ascifi.com/dir/page.cgi?g=Movies/index.html&d=1

(SUB 1 should be turned of for descriptions but i just did a global update).

So:

Anybody got any idea how this can work? The idea would be to have the real categories, A, B, C, D etc and then just display them differently. One thought was that if a category name is only 1 letter long then it should be displayed differently, at the top?

Any suggestions on how this could be done?

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: AlphaBar In reply to
Like in my site:

http://vlib.anthrotech.com

Basically, I hacked the earlier version of the Alphabetical Listing Mod located at pugdog's LINKS SQL FAQ web site.

It wouldn't be too difficult to add it in as a plug-in for LINKS SQL 2.0.

The logical you would apply in terms of SQL statement would be similar to the earlier version, yet you would have to replace the objects and variables with the LINKS SQL objects and variables.

Regards,

Eliot Lee
Quote Reply
Re: AlphaBar In reply to
unfortunatly i don't think it really is the same ;)

i think on your site, that script searches the directory for links beginining with A and lists them?

What i want, are REAL categories that are titled A, B, C etc. with the links in there and you get them using normal category browsing. The only differences is how the category links for A,B,C,D are displayed on the page above them - does that make more sense?

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: AlphaBar In reply to
Padders,

I've just developed an 'Alphabar' mod for Links SQL 1.x - I think it's what you're looking for:

http://www.gossamer-threads.com/...w=collapsed&sb=5

I've made it a part of the 'Categories' table for ease and speed but you should be able to split it out and pass it back to nph-build.cgi to use with a template tag in the category.html template, although I haven't tried that yet!

All the best
Shaun

Quote Reply
Re: AlphaBar In reply to
Ah, I see what you mean now...Good luck finding a solution! Wink

Regards,

Eliot Lee