.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../../../Includes.txt
.. _filtering_listview:
Filtering the listview
======================
In the :ref:`eventplugin-settings` you can define criterias for the listview, so it e.g. only
shows the events of a special category or for a special location. Nearly all settings
affecting the demand of the shown events can be overwritten by a URL parameter called
:php:`overwriteDemand`.
Below follows some examples for the overwriteDemand setting:
Filter by category
~~~~~~~~~~~~~~~~~~
The following code snippet shows a list of links which restrict the category to be shown
to the given category::
{category.title}
{category.title}
As all links are generated using the :php:`f:link.action` viewHelper, they are fully cached.
Filter by special location properties
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is possible to filter events by the location city and country. Using the overwriteDemand
parameter is as following::
Show all events in Hamburg
Show all events in Germany
Filter by year, month and/or day
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is possible to filter events by a specific year, month or day. Using the overwriteDemand
parameter is as following::
All events in 2017
All events in october of the year 2017
All events on the 1st of october 2017
The filtering also respects events, which are in between the given filter criteria. If you for example set
the filter option to filter events for the 2st of october 2017, then also an event will be shown, that start
at the 1st of october and ends at the 3rd of october.