Changes between Version 8 and Version 9 of DeveloperGuidelinesNewModule
- Timestamp:
- 01/01/09 12:26:46 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesNewModule
v8 v9 3 3 == How to add a new module? == 4 4 5 Copy an existing module & edit! 5 Copy an existing module, paste & edit. 6 Good modules to look at to start with are or & cr as these are simplest & standard. 6 7 7 8 === Model === … … 37 38 Add CRUD functions for these tables to {{{/controllers/module.py}}} 38 39 39 DeveloperGuidelinesCreateReadUpdateDelete 40 The RESTful controller for a table needs just a few small tweaks once pasted: 41 * Search/Replace 'organisation' with your_resource 42 * Search/Replace 'Organisation' with Your_resource 43 * Fix plurals, if required (e.g. Persons -> People, Classs to Classes, Metadatas -> Metadata) 44 45 Old: DeveloperGuidelinesCreateReadUpdateDelete 40 46 41 47 Populate the module's menu_options table with the functions that you wish to expose to the module's front page & left-hand navigation bar. 42 48 43 49 === Views === 44 Add HTML templates for each of these functions: {{{/views/module/function.html}}} 50 Add HTML templates for any custom functions: {{{/views/module/function.html}}} 51 52 NB Only {{{index.html}}} is required to start with since the RESTful controller re-uses standard views 45 53 46 54 DeveloperGuidelines