Changes between Version 42 and Version 43 of DeveloperGuidelinesS3Framework
- Timestamp:
- 06/17/10 10:31:44 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesS3Framework
v42 v43 73 73 74 74 === Optional === 75 Other reusable fields are available to add Foreign Key links to key tables, such as 'location_id' to add a GIS location for Mapping, 'person_id' to add a Person & 'organisation_id' to add a link to an Organisation. 76 75 77 List output are made more functional by this .represent 'widget': 76 78 {{{ … … 91 93 92 94 Form field can be made to use a TEXTAREA by marking the field as being type 'text': 93 {{{ db.Field('field', 'text'),}}}95 {{{Field('field', 'text'),}}} 94 96 95 97 Form field can be made to use a SELECT dropdown by setting the field as a lookup to another table...linked to the 'id' field to allow [wiki:DeveloperGuidelinesDatabaseSynchronization Database Synchronization], but displaying a more user-friendly field (such as 'name'): 96 98 {{{ 97 db.Field('field', db.othertable),99 Field('field', db.othertable), 98 100 99 101 db.table.field.requires = IS_NULL_OR(IS_IN_DB(db, 'othertable.id', 'othertable.name')) … … 165 167 ---- 166 168 DeveloperGuidelines 167 DeveloperGuidelines