Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

URL field needs to be longer

Quote Reply
URL field needs to be longer
Where do I adjust the size of the URL field on the Add and Modify pages of the Admin section? Did it on last version but can't seem to find on 2.0. Thanks!
Quote Reply
Re: URL field needs to be longer In reply to
If you just want to adjust the size of the input field that displays for the form on those pages, look at the form elements (<input> ) and adjust the "size=" parameter. If there is none, add one.

If you are using templates, you will find the forms in the appropriate template pages. Otherwise, they will be in site_html.pl in the appropriate subroutine.

If you are trying to adjust the length of the field itself, look in links.def at the variable, %db_def. You will see:

Quote:
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],

Adjust the 75 to be however long you want the field to be in the database. The 40 is the length of the input box that is used in the admin screens. You can adjust it too.

I hope this helps.
Quote Reply
Re: URL field needs to be longer In reply to
Bobsie, thanks! It was the second part I was looking for. All fixed!