Skip to content

Reference

github-actions[bot] edited this page Dec 4, 2026 · 2 revisions

Written against v0.1.0.

The {{ passcal:events }} tag and the add-on's settings.

Parameters

Each filled parameter is passed to PassCal's event feed. An empty one is left out.

Parameter Matches or does When left out
group Events of the group with this name, public name or slug Every group
tag Events carrying the tag with this title; one tag Any tags
tag_mode all or any, for several tags; the tag sends one, so it changes nothing all
category Events of this event type Every type
audience Events for this audience Every audience
start_date Events from this date: a date, or a relative one such as +1 week Today (Central time)
end_date Events that start up to the end of this date No end
only_starred "true" keeps starred events; "false" is the same as leaving it out Starred or not
search Events whose title or description contains the text No search
max The most events to return, up to 1000 100

PassCal ignores a date it cannot read.

Variables

Inside the tag pair:

Variable Holds
events The list of events; loop over it with {{ events }}...{{ /events }}
no_results True when the list is empty

Inside the events loop, among the fields the feed sends:

Field Holds
title The event's title; print it with sanitize
url The event's page on the calendar; print it with sanitize
location Where it is held; print it with sanitize
date The day, such as June 12; markup surrounds the year when it is not the current one
date_time The time range; empty for an all-day event
thumbnail_html The image markup for the event's thumbnail; print it without a modifier

Settings

Publish the file with php artisan vendor:publish --tag=aether-passcal-config; it is config/aether-passcal.php.

Key Environment variable Default Effect
base_url PASSCAL_BASE_URL https://calendar.uams.edu The PassCal instance to read
cache_ttl PASSCAL_CACHE_TTL 300 Seconds a fetched list is kept

Fetching and caching

The request waits up to ten seconds. The result is cached by feed address, so two tags with the same parameters share one entry. A request that fails gives an empty list, and that empty list is cached too.

Example

{{ passcal:events audience="Patients" end_date="+30 days" }}
    {{ events }}
        <p>{{ title | sanitize }}, {{ location | sanitize }}: {{ date }} {{ date_time }}</p>
    {{ /events }}
{{ /passcal:events }}

Clone this wiki locally