Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: [Foton] default url value

Quote Reply
Re: [Foton] default url value In reply to
In Reply To:
Thanks esm and Perlflunkie, that was the rightr location for it.

BTW; it was not URL but Url, so the right line reads;

<td><input name="Url" size="50" value="http://"></td></tr>

Thanks a lot!


it really depends on what is in the %db_def section of your links.def file. Perl is case sensitive so use whatever is there.

Links 2.0 comes standard with the following:

Code:
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']


And,generally, I would not changes any of the field names as some are imbedded in the program.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Subject Author Views Date
Thread default url value Foton 5849 Oct 26, 2003, 3:41 PM
Thread Re: [Foton] default url value
PerlFlunkie 5790 Oct 26, 2003, 6:18 PM
Thread Re: [PerlFlunkie] default url value
esm 5773 Oct 26, 2003, 6:32 PM
Thread Re: [esm] default url value
PerlFlunkie 5775 Oct 26, 2003, 6:48 PM
Thread Re: [PerlFlunkie] default url value
Foton 5767 Oct 27, 2003, 2:39 AM
Post Re: [Foton] default url value
PerlFlunkie 5773 Oct 27, 2003, 9:56 AM
Thread Re: [Foton] default url value
esm 5762 Oct 27, 2003, 10:51 AM
Thread Re: [esm] default url value
Foton 5765 Oct 27, 2003, 1:33 PM
Post Re: [Foton] default url value
esm 5741 Oct 27, 2003, 7:22 PM
Post Re: [PerlFlunkie] default url value
esm 5756 Oct 27, 2003, 10:12 AM