🌳Forms File Structure

└───marketplace_builder
    β”œβ”€β”€β”€custom_model_types
    β”‚   └───forms
    β”‚           form_3.yml
    β”‚
    β”œβ”€β”€β”€form_configurations
    β”‚   └───forms
    β”‚           form_3.liquid
    β”‚
    β”œβ”€β”€β”€notifications
    β”‚   └───email_notifications
    β”‚       └───forms
    β”‚           └───form_3
    β”‚               └───fic
    β”‚                       0.liquid
    β”‚                       1.liquid
    β”‚
    └───views
        └───partials
            β”œβ”€β”€β”€layouts
            β”‚   β”œβ”€β”€β”€forms
            β”‚   β”‚   └───form_3
            β”‚   β”‚       default.liquid
            β”‚   β”‚
            β”‚   └───form_confirmation
            β”‚           default.liquid
            β”‚
            └───tables
                └───forms
                        3.liquid
  • Form Layouts can be modified in the views/layouts/partials/form folder. A reserved file named default.liquid will be created as shown, this will be edited automatically by the system, so if you want to make any modifications, you should always:

    • a) Make a copy and give it a new custom name

    • b) In the 'include' tag, change the layout parameter to point to the new file name

  • The notifications folder stores any Liquid files which are used to render automation email notifications or API calls. fic refers to form created. Files are given an ID starting with 0 and ascending. This must match the ID of the automation in marketplace_builder/views/partials/tables

  • Ignore the folders custom_model_types, form_configurations and views/partials/tables unless you are creating forms using CLI. It is recommended to create and edit forms using the Siteglide Admin UI as it prevents duplicate work needed to update the several files involved. There may be situations where you would want to edit in CLI, in which case it's recommended to edit the file in the tables folder and then after syncing to save in the Siteglide Admin to apply that change everywhere.

Last updated