How do I chgange the URL as not a required field? (Beta5)
Jan 24, 2001, 1:23 PM
Veteran / Moderator (6956 posts)
Jan 24, 2001, 1:23 PM
Post #2 of 5
Views: 2558
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
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
Jan 27, 2001, 10:21 PM
User (376 posts)
Jan 27, 2001, 10:21 PM
Post #4 of 5
Views: 2542
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.
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.
Jan 27, 2001, 11:05 PM
Veteran / Moderator (6956 posts)
Jan 27, 2001, 11:05 PM
Post #5 of 5
Views: 2524
It will check duplicates, but obviously it can't 'verify' the URL :)
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ