MODULES
...
Siteglide Modules
Events
Navigation - Introduction
6min
the events module list view can be filtered by category, host, or by finding events which are happening between given dates introduction the events module includes the following optional features for helping users navigate the list view browse by category browse by host (requires authors module) browse by month/date finds events which are happening during this month search events which are happening between two dates you may be familiar with many of these if you've used the blog module navigation , however the main difference between them is how they handle dates; navigating the blog module by date would use the post's release date , whereas the events module will check to see if a given date falls between the event start and event end dates using the navigation options to filter the map and calendar views you can use the navigation options on the map and calendar layouts these are list layouts too! however, certain features just won't have the same effect for example, filtering the calendar layout by date does not make sense as the calendar controls already give you an option to navigate by date using the archive navigation on the calendar would cause certain events to be "missing" from the calendar, even if the user had navigated to a different month on the other hand, it's perfectly possible that you might wish to filter the calendar by host or category to allow the user to focus on the type of events which interest them most using two list views on the same page and only filtering one of them as the events navigation options are powered by url parameters, the parameters will filter all events list views on the page the same way if you want to provide a calendar and an events list together on the page for example, and you only wish one of them to be affected by the filters in the url, you can do so by only using the use adv search 'true' parameter on the list view you want to be filtered user feedback each events navigation article will explain how you can use liquid logic to dynamically show the currently applied filter here, we'll show an example of some logic that will check for any of the applied filters {% assign now = "now" | date "%s" %} {% if context params range type == "past" %} past events future events {% elsif context params range type == "future" %} future events past events {% elsif context params module field 12 4 %} events hosted by {{context params host name | url decode}} {% elsif context params range type == "month" %} events in {{context params range gt | date "%b %y"}} {{context params range gte | date "%b %y"}} {% elsif context params range type == "between" %} events between {{context params range gt | date "%d %b %y"}} {{context params range gte | date "%d %b %y"}} and {{context params range lt | date "%d %b %y"}} {{context params range lte | date "%d %b %y"}} {% elsif context params category %} category {{context exports categories data\[context params category] name}} {% else %} all events past events {% endif %} of course, you can use this for inspiration and edit as you wish related documents searching keyword searching advanced filtering