Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Categories??

Quote Reply
Categories??
Hi all,

This is a question for Alex,

I see that in the links add/modify it is now possible to add a review to as many categories as possible, I was concerned with a search that it would display the link for all categories the link was in but it doesnt seem to is this correct?

Also how does links tell which category is the "main" category and which one are "Sub" when a link is subscribed to various main and sub categories?

Will it still only show the one search result?



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Categories?? In reply to
Hi,

Right now it just picks the first category. It will only show one search result. I was at a lost on how to improve this. I didn't want to add a 'Main Category' field, as that's going back to how it was in Links SQL 1.x. Also, it adds a lot of headaches for people who don't use multiple categories (which in my experience was 90%+).

Let me know what you think..

Cheer,s

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Categories?? In reply to
I totally aggree wwith the one category box, as i have so many poeple who subscribe to the main category and then again in the altcategory, which displays the same review/linkn twice which was a pain in the butt.

Aslong as it only shows onne search result it fine by me, seems this is the best and only way to do it.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Categories?? In reply to
Alex,

What about adding a "main" field to the CatLink ?

If there is a flag field, then you order by that field, so the first record found is the one you want as "main".

In the admin, you can flag a category as "main" to show up on searches.

This field is ignored if not set, but if it is, you can force a link to appear in the search.





PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Categories?? In reply to
How do you specify that when selecting a category for a link? Do we need another field on the add form (cumbersome when dealing with large sets of categories)?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Categories?? In reply to
Alex,

What about the same thing as in the current links. Two boxes, one is the larger multiple select box, followed by the single line single-select "main search category" box. (reverse order of the current one).

Obviously the main_search_category is optional, and should override anything in the upper box.

It's something to think about... I have not looked into the searches deeply, and how links are found, but whatever list you use to do the search on (for the first hit) should proabably use this. I would imagine you find the link, then use CatLink to find out what category it's in. All you'd need to do is add Order By Main to find the "first" link.

Also --- another bug:
I tried to search for a link from the side-bar box (modify/link/ID#) and the search turned up nothing -- but I noticed the ID was put in both the ID and Username boxes.





PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Categories?? In reply to
Also,

It would be nice if the "selected" options appeared at the top of the select box. that way, they are grouped for easy viewing. The more categories you have, the more difficult this is.

Perhaps have a routine that if more than x-number of categories are selected, the selected categories are shown in one box, with the available categories in another.

Maybe that would solve the "main" category as well. Use a two-window select box, and the top category is auto-selected as "main". There is js code for doing that.... lots of sites are doing. Put the "selected" categories in the right box, and the available in the left box. Allow ordering in the right box, such that the top link is considered main.

Or, for something truly compatible, add the "order" field to the CatLinks list, and using the two box format, the links are ordered from 1....[n] in the box, then they are assigned that number in the CatLinks. Ordering is "DESC" and link #1 is always selected first.

Something to think about....

It would allow future use of the category order in other modules.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ