File Structure
Written By Luke Wakefield
Last updated 2 months ago
In general there are two main types of folder structure for Modules, though within that, there will be variation on the types of file available, so check each individual module.
The form directory stores the form layout for Module create/ edit Forms.
Siteglide Published Modules
Most Siteglide published Modules will have a folder structure a little like this:
Examplemarketplace_builder/ βββ views/ βββ partials/ βββ layouts/ βββ modules/ βββ module_3/ βββ example_layout_name/ | βββ list/ | | |ββ wrapper.liquid | | βββ item.liquid | βββ detail/ | |ββ wrapper.liquid | βββ item.liquid βββ form/ βββ example_layout_name.liquid
Newer Siteglide Published Modules & Marketplace Modules
Examplemodules/ βββ example_module_id/ βββ private/ βββ public/ βββ views/ βββ partials/ βββ layouts/ βββ modules/ βββ module_3/ βββ example_layout_name/ | βββ list/ | | |ββ wrapper.liquid | | βββ item.liquid | βββ detail/ | |ββ wrapper.liquid | βββ item.liquid βββ form/ βββ example_layout_name.liquid
The private folder will exist, but will not be possible to pull using CLI or view in the Code Editor UI. It is for storing functional code which will be used by the Module behind the scenes.
Read more about Module Directory Structure on platformOS: https://documentation.platformos.com/developer-guide/platformos-workflow/directory-structure#modules