The Authors module can be installed on any site and are typically used in connection with the Blog Module to group posts and display who has written a blog post. Authors can also be used independently in WebApps by using Datasources. You can also add Social Media and website links to each Author which enables visitors to engage with the Authors on other platforms.
Prerequisites:
- You have installed the Blog Module
Syntax
{%- include 'module', id: '6', layout: 'default', per_page: 20, sort_type: 'properties.name', sort_order: 'asc' -%}
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/ - 'layout' values are relative to the folder: layouts/modules/Authors (module_6)/[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 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 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'] }}
Description: name of the staff member
Field Name: Weighting
Liquid Tag: {{ this['weighting'] }}
Description: weight of item, used for sorting
Field Name: Release Date
Liquid Tag: {{ this['release_date'] }}
Description: release date of the item
Field Name: Expiry Date
Liquid Tag: {{ this['expiry_date'] }}
Description: expiry date of the item
Field Name: Enabled
Liquid Tag: {{ this['enabled'] }}
Description: enable/disable the item
Field Name: Title
Liquid Tag: {{ this['Title'] }}
Description: name of the Staff Member
Field Name: Sub Title
Liquid Tag: {{ this['Subtitle'] }}
Description: job title or other short text about the Author
Field Name: Description
Liquid Tag: {{ this['Description'] }}
Description: description of the author
Field Name: Image
Liquid Tag: {{ this['Image'] | asset_url }}
Description: image of the author
Field Name: Image Alt
Liquid Tag: {{ this['Image Alt'] }}
Description: image alt of the author image
Field Name: Linkedin URL
Liquid Tag: {{ this['LinkedIn URL'] }}
Description: Linkedin profile URL of author
Field Name: Facebook URL
Liquid Tag: {{ this['Facebook URL'] }}
Description: Facebook profile URL of author
Field Name: Twitter URL
Liquid Tag: {{ this['Twitter URL'] }}
Description: Twitter profile URL of author
Field Name: Instagram URL
Liquid Tag: {{ this['Instagram URL'] }}
Description: Instagram profile url of author
Field Name: Pinterest URL
Liquid Tag: {{ this['Pinterest URL'] }}
Description: Pinterest profile url of author
Layout Files
Authors Module layouts are stored in the following folder structure, which you can view via Code Editor: assets/layouts/modules/Authors (module_6)/
Within this module folder you will find the following layout folders:
default/ - the default layout folder
detail/ - full page layouts folder (default not in use)
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