Gossamer Forum
Home : Products : Links 2.0 : Customization :

adding new field

Quote Reply
adding new field
Hi,

I would like to add a new field in the link database.The goal of this field is to mention the langage of the link. So this field can have 5 value : fr, us, ca, be, ch.

I have modify the file link.def as following :
In the %db_def :
Flag => [14, 'alpha', 2, 2, 1, 'fr', 'fr|us|ca|be|ch']

After i add :

$db_flag = 14;

and in the : %add_system_fields

i add :
Flag => 'fr'

It does not work (i have a fatal error and 2 syntax error).
I have no experience in the cgi so could you explain me fully.

Many thanks,

Emmanuel
Quote Reply
Re: adding new field In reply to
Don't add it to the %add_system_fields - you need to add it to %db_select_fields and seperate the options with commas:

Flag => 'fr, us, ca, be, ch'

As far as the errors, uh......what do they say??
Quote Reply
Re: adding new field In reply to
read the FAQ on this in the Resource Center