MODULES
Siteglide Modules

Blog

6min
add posts in the admin and display on the site with list and detail views, search and filter list views and combine with the authors module dependencies authors module optional syntax {% include 'module' id '3' layout 'default' per page 20 sort type 'properties name' sort order 'asc' %} 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/blog (module 3)/\[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']}} liquid tags field name liquid tag description item name {{ this\['name'] }} name of the blog post item slug {{ this\['slug'] }} item url 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'] }} title of the blog post subtitle {{ this\['subtitle'] }} subtitle of the blog post description {{ this\['description'] }} list description of the blog post author syntax type 1 (requires authors module) {% include 'modules/siteglide authors/get/get item author', author layout 'design system/1/author', author layout type 'list', author id this\['author'] %} data source of author parameters author layout path to the folder containing author layouts author layout type name of author layout folder (containing wrapper and item files) author id unique id of the author for this item can be dynamically passed in with this\['author'] author syntax type 2 (requires authors module) the benefit of this syntax is that it should be more consistent with how other modules are outputted on the page {% include 'module', id '6', item ids this\['author'], layout 'design system/1/author', type "list", datasource 'true' %} data source of author parameters layout path to the folder containing author layouts within the blog module type name of the layout folder containing wrapper and item liquid layout files datasource should be set to true to indicate that this module is a sub module placed inside another module layout item ids indicates the unique ids of the author items you want to display can be dynamically passed in with this\['author'] main image {{ this\['main image'] }} main image of the blog post main image alt {{ this\['main image alt'] }} main image alt tag of the blog post list image {{ this\['list image'] }} list image of the blog post list image alt {{ this\['list image alt'] }} list image alt tag of the blog post content {{ this\['content'] }} main content of the blog post category array {{ this category array }} outputs comma separated list of ids for categories this item belongs to how to output a list of categories that your blog module belongs to you can learn more about how to use the {{this category array}} field to output a list of categories that belong to the blog item ( or, in fact, any module or webapp item) here outputting categories on webapp / module / ecommerce layouts filtering the blog list view by category, author or date you can learn more about the multiple ways of navigating and filtering the blog list view here blog navigation introduction layout files blog module layouts are stored in the following folder structure, which you can view via code editor layouts/modules/blog (module 3)/ 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 further folders exist for storing layouts for components like sidebars and filters