Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changing required field

Quote Reply
Changing required field
How do I chgange the URL as not a required field? (Beta5)

Quote Reply
Re: Changing required field In reply to
I don't think that is a really good idea. Links uses certain fields internally, and the URL is one of them.

What you should do is make the URL some other piece of uniquely used information.

On my graphics sites, I use the URL as the path to the image. On another site, I use it as a sub-title. But, it makes it easier, and safer, to use that field for something.

In all database work, you need to pick certain fields to be used for access and relating tables. The assumption for a Links site, is that a Link would have a unique ID number (auto increment) a title that may or may not be unique, and a URL that would also be unique (check duplicates). Therefor, what you chose to use the URL field for, should be something that would lend itself to a (check duplicates) sort of logic, even if you can't then go out and "verify" the URL exists.

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


Quote Reply
Re: Changing required field In reply to
Thanks, very helpful info!

Quote Reply
Re: Changing required field In reply to
I followed your suggestion. I left the url required, but I am actually using it for a unique title instead. Should I adjust anything else, will it still check for duplicates in the field even though I have changed the fields contents?
I have also added a db field named website, for those entries that do have a website. Is there any way that I can change the verify url function to use this field instead of the url field?
I might not have said this, but I really do appreciate all the help you have given me.

Quote Reply
Re: Changing required field In reply to
It will check duplicates, but obviously it can't 'verify' the URL :)

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