MODULES
...
Siteglide Modules
Events

Browse by Host (Author)

9min
this option lets you filter events by host prerequisites you have installed the events module you have installed the authors module you have added at least one author as an event host introduction this article explains how to include the browse by host (author) option when including a blog list default layout examples how to give feedback to the user about their results e g in the screenshot "events hosted by regina alexander" add "use adv search" parameter to include for event list view the "use adv search" parameter is needed to allow filtering from the url to apply to your event items, this can be added to the include for event list like so {% include 'module' id '12' layout 'default' per page '20' show pagination 'true' sort type 'created at' sort order 'desc' use adv search 'true' %} to include this option include the following liquid to dynamically get a list of available event hosts for the user to select {% include 'modules/siteglide authors/get/get authors' author layout 'design system/1/author' author layout type 'list' author field 'module field 12 4' %} the author field will be module field 12 4 if you are using siteglide's authors module the layouts are structured in the same way as category layouts in the previous section default layout examples with explanation wrapper liquid authors {% include 'modules/siteglide system/get/get items', item layout 'item' %} item liquid {% if this\['image'] %} {% endif %} {{this\['name']}} to filter the blog list view, you need a link to the blog list view slug, followed by "?module field 12 4={{this id}}" siteglide will be able to read the url and filter the list user feedback displaying the currently applied filter to make it easier to give feedback to the user, you can optionally include the host's name in the url href="{{context location pathname}}?module field 12 4={{this id}}\&host name={{this name | url encode}}" on the list view, you can then include the following liquid to read the url and decode the author name you are currently filtering by {% if context params module field 12 4 %} events hosted by {{context params host name | url decode}} {% endif %}