Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Default Values not showing

Quote Reply
Default Values not showing
Hi all,

Ive added defaukt vales to a section in the links.def file as follows

Code:
ReceiveMail => [14, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
Graphic => [15, 'alpha', 40, 75, 0, '', 'http://www.isram.net/images/youlogo.gif'],
Gwidth => [16, 'alpha', 5, 5, 0, '', '152'],
Gheight => [17, 'alpha', 5, 5, 0, '', '61'],
Priority => [18, 'alpha', 0, 5, 1, 'No', 'No|Yes']

But when i submit a new link the values dont show in the validate section of the admin screen, What am i missing???



------------------
Regards
MDJ
http://www.isee-multimedia.co.uk
Quote Reply
Re: Default Values not showing In reply to
are you adding these links from the admin section or from add.html?

if from add.html, be sure that all your new fields are included, either shown or hidden with default values. Also, you can change the system defaults for fields you don't need users to add, here in links.def
Code:
# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => '0',
Rating => 0,
Votes => 0,
ReceiveMail => 'Yes',
key => 'No',
isPick => 'No'
);
------------------
Marie Altobelli
Dragonsblood Ink. Librarian
dbink.hostingcheck.com

[This message has been edited by ladyofdragons (edited February 03, 2000).]