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

How do I ....

Quote Reply
How do I ....
How do I specify which fields are required and which are not for the add.cgi.
In 1.1 there was a variable you specified which fields are required, I can find this in LinksSql.
Quote Reply
Re: How do I .... In reply to
add.cgi uses the Links.def file. Open the Table Editor and you'll see which fields are marked required. You can change them there.

It's the 3rd field from the last in the hash-list.

I've found it easier -- especially in import and my own work -- to get rid of required fields. That's only a base level check, and you won't corrupt the SQL database if there is an error (the way you could with a flat file one). If SQL doesn't like something, it will fail to insert the record and return 'undef'.