Install from the Modules tab on the Site you're working on from Portal:
For more information on how to install and manage modules:
Create or manage existing items:
Give it a name and fill in any other fields:
You then need to output the FAQs on the site. You'll likely want to create a Page called FAQs or maybe insert it as a Section/Block on another page:
Your FAQ Module will work out of the box but Siteglide is all about flexibility and recognising each project is different. You have total control to customise the Layouts and how the FAQ Module works. We recommend looking at the SiteBuilder FAQ Layouts as a starting point as there might be existing Layouts that can save you a lot of time.
id
- the Module's ID
item_ids
- output one or more module items, comma seperated
category_ids
- output all items in one or more categories, comma seperated
layout
- 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 page
show_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 item
properties.release_date
- date the item is set to be released
sort_order
- defines the order in which the type is sorted
asc
- sort items in ascending order
desc
- sort items in descending order
collection
- 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']}}
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
Field Name | Liquid Tag | Description |
Item Name | {{ this['name'] }} | name of the FAQ |
Weighting | {{ this['weighting'] }} | weight of item, used for sorting |
Release Date | {{ this['release_date'] }} | release date of the item |
Expiry Date | {{ this['expiry_date'] }} | expiry date of the item |
Enabled | {{ this['enabled'] }} | enable/disable the item |
Question | {{ this['question'] }} | FAQ question |
Answer | {{ this['answer'] }} | FAQ answer |