Syntax
{%- include 'module', id: '10', layout: 'design_system/2', per_page: 20, sort_type: 'created_at', sort_order: 'desc' -%}
Parameters
id
- the Module's IDitem_ids
- output one or more module items, comma seperatedcategory_ids
- output all items in one or more categories, comma seperatedlayout
- default is default.liquid - 'layout' values are relative to the folder: layouts/modules/FAQ (module_10)/[layout name]per_page
- defines the number of items outputted on the pageshow_pagination
- default is true - defines if items should be paginated when the per_page is met.sort_type
- defines the type by which items are ordered
properties.name
- name of the Module item (alphabetical)
created_at
- date the Module item was created
updated_at
- date the Module item was last edited
properties.weighting
- weighting of the Module itemsort_order
- defines the order in which the type is sorted
asc
- sort items in ascending order
desc
- sort items in descending ordercollection
- default is 'false' - If you set it as collection: 'true' then any layout is suppressed.Data is accessible via {{context.exports.webapp_1.data}}. For Example, name would be: {{context.exports.webapp_1.data.result.items[0]['name']}}
Liquid Tags
Field Name: Item Name
Liquid Tag: {{ this['name'] }}
Item Name: name of the FAQ
Field Name: Weighting
Liquid Tag: {{ this['weighting'] }}
Item Name: weight of item, used for sorting
Field Name: Release Date
Liquid Tag: {{ this['release_date'] }}
Item Name: release date of the item
Field Name: Expiry Date
Liquid Tag: {{ this['expiry_date'] }}
Item Name: expiry date of the item
Field Name: Enabled
Liquid Tag: {{ this['enabled'] }}
Item Name: enable/disable the item
Field Name: Question
Liquid Tag: {{ this['question'] }}
Item Name: FAQ question
Field Name: Answer
Liquid Tag: {{ this['answer'] }}
Item Name: FAQ answer
Layout Files
FAQ Module layouts are stored in the following folder structure, which you can view via Code Editor: layouts/modules/FAQ (module_10)/
Within this module folder you will find the following layout folders:
default/
- the default layout folder
detail/
- full page layouts folder
item.liquid
- detail item content file
wrapper.liquid
- detail item wrapper file
list/
- page section layouts folder
item.liquid
- list item content file
wrapper.liquid
- list item wrapper file