MODULES
Siteglide Modules

Authors

5min

A useful complement to the Blog Module, the Authors Module lets you link Authors to Blog posts they've written and vice-versa. 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:

Syntax

HTML


Parameters

  • 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/ - '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 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 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

Liquid Tag

Description

Item Name

{{ this['name'] }}

name of the Author

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

Title

{{ this['Title'] }}

name of the Author

Subtitle

{{ this['Subtitle'] }}

Job title or other short text about the Author

Description

{{ this['Description'] }}

Description of the Author

Image

{{ this['Image'] | asset_url }}

Image of the Author

Image Alt

{{ this['Image Alt'] }}

Image alt of the Author image

Linkedin URL

{{ this['LinkedIn URL'] }}

Linkedin profile URL of the Author

Facebook URL

{{ this['Facebook URL'] }}

Facebook profile URL of the Author

Twitter URL

{{ this['Twitter URL'] }}

Twitter profile URL of the Author

Instagram URL

{{ this['Instagram URL'] }}

Instagram profile URL of the Author

Pinterest URL

{{ this['Pinterest URL'] }}

Pinterest profile URL of the 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



Updated 06 Apr 2023
Doc contributor
Did this page help you?