Forms File Structure
Written By Luke Wakefield
Last updated 2 months ago
Exampleโโโโ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.
ficrefers toform created.Files are given an ID starting with 0 and ascending. This must match the ID of the automation inmarketplace_builder/views/partials/tables - Ignore the folders
custom_model_types,form_configurationsandviews/partials/tablesunless 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.