Gossamer Forum
Home : Products : DBMan : Customization :

Adding a field

Quote Reply
Adding a field
Can somebody tell me how to do this:
When submitting a new profile I want the user to have 3 extra spaces in which they can add 3 urls that will show up as hyperlinks when their profile is created and displayed on the actual "list all" or "Results" display.
Quote Reply
Re: Adding a field In reply to
To add 3 more fields to your form, just insert something like :
URL1 => [1,'alpha',40,255,1,'http://','^http://'],

URL2 => [2,'alpha',40,255,1,'http://','^http://'],

URL3 => [3,'alpha',40,255,1,'http://','^http://'],

to the %db_def in your .cfg file. The first number in the brackets - ie [1 [2 [3 should correspond to the numbers already in your .cfg file. Once you have that done, just add the extra fields in your html.pl file in the html_record_form and html_record.

Hope that's what your looking for.


------------------
Jason
Extreme mtb
http://extreme.nas.net
Quote Reply
Re: Adding a field In reply to
Thanks with your help I got it to work.
One more thing thought, I got all of it ok except the entry output lists these 3 links (URL1,URL2,URL3) as text, how can I make them links?
...Timmyt
Quote Reply
Re: Adding a field In reply to
Hi,

In your output, just wrap it in the html:

<a href="$rec{'URL1'}">$rec{'URL1'}</a>

You can't link it if you are using auto_generate though.

Cheers,

Alex