Standard List View

Written By Luke Wakefield

Last updated 2 months ago

We'll explain how to output a List View of Events and link you to the docs on advanced Filtering and Navigation

Introduction

The Events Module comes with a wide range of options for your List View. You can output Events as:

You can also use our Navigation options with any of these views.

Outputting a List View

You can output a List View in any Liquid File - that means:

  • Pages
  • Templates
  • Headers
  • Footers
  • Layouts
  • Code Snippets
  • Content Sections

Basic List views will also work in workflow and auto-responder emails, but be aware that any features which depend on JavaScript or URL parameters will not be supported in this context- that includes the Map and Calendar Layouts.

Use the following Liquid Syntax to output an Events List view:

Example
{%- include 'module' id: '12' layout: 'design_system/1/list' per_page: '2000' show_pagination: 'false' sub_model: 'true' -%}

Additionally, the events list can also be sorted by core event module fields using the sort_type parameter and passing a module field such as event start date (properties.module_field_12_2), end date (properties.module_field_12_3), or event host (properties.module_field_12_3).

The following Liquid Syntax can be used to output an Events List view sorted by event start dates in descending order:

Example
{%- include 'module' id: '12' layout: 'design_system/1/list' per_page: '2000' sort_type: 'properties.module_field_12_2' sort_order: 'desc' show_pagination: 'false' sub_model: 'true' -%}

More information on module fields can be found here.