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

how does alternate categories works?

Quote Reply
how does alternate categories works?
Can any explain how the alternate-categories technical works? Where is it store? How to backup it ?

Is there a import module for it ? Example i have the following ascii file:
field: id = 1 category1=0 (0 is not true) category2=-1 (-1 is true:)) category 3=0 category4=-1

example data ascii file is:
1|0|-1|0|-1
2|etc.

Is it possible to choose alternate categories when you choose add record ? Now it can only be selected/added when you choose modify links - alternate


Quote Reply
Re: how does alternate categories works? In reply to
Right now alternate categories are selected in the "admin" area.

The whole logic for this section of the code has changed, and will be different in the next version. It should be easier to add alternate categories, and to work with them.

In order to create alternate categories, the link has to have a LinkID. You can make some hacks around it, but they are ugly and won't be portable to the next version. If you want to have additional categories in the "add.cgi" routines, you'll have to 'hard' code them, and have a max number of categories, etc. The Links/Validate database is set up to hold one category, then you create the 'altertnates' in the CategoryAlternates table, using LinkID=>CategoryID type pairing.





http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: how does alternate categories works? In reply to
Thanks old veteran pugdog :)...

Well i hope the new version will be here before the end off the week. I really need it bad, have to make a project for a client within 2 weeks :) ...

Why don't i see the alternateCategory table in the admin under Table Maintenance?