Repository navigation
Walkthrough
Written against v0.1.0.
By the end of this page, a template lists upcoming PassCal events, each linked to its page on the calendar.
It assumes the add-on is installed (see Installation (README)) in a site that can reach the PassCal instance.
{{ passcal:events max="5" }}
<ul>
{{ events }}
<li><a href="{{ url | sanitize }}">{{ title | sanitize }}</a>: {{ date }} {{ date_time }}</li>
{{ /events }}
</ul>
{{ if no_results }}<p>No upcoming events.</p>{{ /if }}
{{ /passcal:events }}Load the page. It lists up to five upcoming events.
Note: print text from the calendar, such as title, location and url, through Statamic's sanitize modifier, as above. date holds markup around the year of an event in another year, so it is printed without the modifier.
The default is https://calendar.uams.edu. To use another instance, set it in the site's .env:
PASSCAL_BASE_URL=https://calendar.example.testReload the page. The events now come from that instance.
- Filtering events: choose which events the list holds.
Home | Your first events list | Filtering events | Troubleshooting | Reference | README | Repository
aether-passcal. Written against v0.1.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
Troubleshooting
Reference
Project