Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Expanding typespace in forms

Quote Reply
Expanding typespace in forms
Hi all,

Great tool and I will be buying it when I can get it to do everything I need!:^)
Have solved all the problems up to this one. My URL links are very long and I have run out of room (won't let me finish the URL) on some of them. I went into admin_html.pl and found the forms are called by html_record_form but I can't find where I could actually get into the HTML for the add forms and change the field specifications. Any clues? Thanks!

------------------
Quote Reply
Re: Expanding typespace in forms In reply to
Did you try looking in links.def?

Where it has:

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, '', ''],

take the line:

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

and change the 75 to what ever you would like it to be. You may also have to change this on the templates, in the HTML.

------------------
Quote Reply
Re: Expanding typespace in forms In reply to
Thank you - Thank you - Thank YOU! No, I hadn't looked in links.def and I probably would have never recognized that page's function without your help. I was actually looking the templates and not finding anything. I just changed that number and the add function is giving me all the space I need and it works fine now. I'll relie on links.def now that I see what it does.