EPrints Technical Mailing List Archive
Message: #03290
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Checkboxes
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Checkboxes
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Thu, 17 Jul 2014 16:32:48 +0100
Hi Andrew, I do not know the name of your field, or its type, I'll assume "FIELDNAME" and that it's a boolean (so it takes values: TRUE, FALSE or undef) $data->{FIELDNAME} = "FALSE"; # for "no" So when EPrints creates a new "eprint" object, it starts with the hash $data and populates it with default values. The line above adds such a default value. The object is then created in the DB. Seb. On 17/07/14 15:26, Andrew Beeken wrote: > Hi Seb, > > What syntax do I use in the default.pl file - it’s not entirely clear from > my end? > > Andrew >
- References:
- [EP-tech] Checkboxes
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Checkboxes
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Re: Checkboxes
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Checkboxes
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Checkboxes
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Checkboxes
- Prev by Date: [EP-tech] Re: Browse view by document language.
- Next by Date: [EP-tech] Re: Browse view by document language.
- Previous by thread: [EP-tech] Re: Checkboxes
- Next by thread: [EP-tech] Re: Checkboxes
- Index(es):