Changes between Version 22 and Version 23 of DeveloperGuidelines/PrePopulate
- Timestamp:
- 10/14/15 15:49:10 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/PrePopulate
v22 v23 40 40 41 41 ==== Prepopulate folders ==== 42 Within the private/templates there are a number of different folder:42 Within the modules/templates there are a number of different folder: 43 43 * '''default''' - base data, such as lookup lists, which will be needed in the production deployment 44 44 * '''demo''' - user data which is useful for demo or training instances … … 60 60 Which will use the questionnaire24H.csv file, which in this case will be in the same directory as the tasks.cfg file, to import the data. Using the question_list.xsl transform file which will be the static/formats/s3csv/survey directory. The importer will then use the survey/question_list function to "manage" the import using any '''onvalidate''' or '''onaccept''' callbacks that are set up by this controller. 61 61 62 The CSV file does not '''need''' to be in the same directory as the tasks.cfg file, if it is held in a different file then the full path needs to be given relative to the private/templates directory.62 The CSV file does not '''need''' to be in the same directory as the tasks.cfg file, if it is held in a different file then the full path needs to be given relative to the modules/templates directory. 63 63 64 64 All transform files are stored in the {{{static/formats/s3csv}}} directory tree. … … 71 71 *,gis_set_default_location,defaultlocation.csv 72 72 }}} 73 This uses the csv file '''default_location.csv''' and the function '''gis_set_default_location''' to set, in this case, the default location. Another special function is import_role which is used to import user permissions (or roles) examples of the roles and what the csv looks like can be found in the private/templates/roles directory.73 This uses the csv file '''default_location.csv''' and the function '''gis_set_default_location''' to set, in this case, the default location. Another special function is import_role which is used to import user permissions (or roles) examples of the roles and what the csv looks like can be found in the modules/templates/roles directory. 74 74 75 75 === URL Import ===