Changes between Version 22 and Version 23 of DeveloperGuidelines/PrePopulate


Ignore:
Timestamp:
10/14/15 15:49:10 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/PrePopulate

    v22 v23  
    4040
    4141==== Prepopulate folders ====
    42 Within the private/templates there are a number of different folder:
     42Within the modules/templates there are a number of different folder:
    4343* '''default''' - base data, such as lookup lists, which will be needed in the production deployment
    4444* '''demo''' - user data which is useful for demo or training instances
     
    6060Which 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.
    6161
    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.
     62The 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.
    6363
    6464All transform files are stored in the {{{static/formats/s3csv}}} directory tree.
     
    7171*,gis_set_default_location,defaultlocation.csv
    7272}}}
    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.
     73This 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.
    7474
    7575=== URL Import ===