It is easier to install the module and create a few test data sets before editing templates. Before installing the empty database file /data/_MODULE_NAME_.db should be secured. After installation, create some test data.
If the template editing is complete, the database file with the test data can be simply overwritten with the empty backed up database file and the test data you are going again. The installation then has to be performed again.
The templates are located in the directory /view/tpls. The download only the templates are included that are necessary according to the ModMaker settings.
main.tpl is the main template, all other templates are loaded into the main template. The expenditure of checkboxes and the multiple image upload to be looped. For the output of the individual data, there are the templates checkbox.tpl and multiimgs.tpl. Placeholder for loading of sub-templates or links consist of text to uppercase with 3 leading and final 3 diamonds (###). All links that do not want to have one in the templates can be deleted.
When was selected in the ModMaker Administration menu item "individual start post in the topic" stands for the list of topics, alternatively the template topicslist_startdata.tpl and alternatively for the starting post in the topic the template topic_startdata.tpl available. If one of the templates does not exist, the data.tpl template is used.
The templates (if available) can be loaded into one another as follows:
In the module administration you put in an option group, one option per line and the values of an option separated by pipes (|). The values in a row are outputed in the options.tpl template.
Input:
Value1|Value2|Value3
Output:
$db_data['option'][0] = Value1
$db_data['option'][1] = Value2
$db_data['option'][2] = Value3
$db_data['option'][0] and $db_data['option'][1] are examples included in the template. Other values must be added. As values also language defines in multilingualism and images are possible, which can be uploaded directly to the administration option.
For different/multiple option groups sets different templates and placeholders can be created. But that must be options.tpl expanded with the database ID of the option group. From options.tpl is options(_ID).tpl and variables ###LOAD_OPTIONS_TPL### will be ###LOAD_OPTIONS(_ID)_TPL###.