Event schedule with dates and prices

A bordered list of upcoming workshops showing a formatted date and weekday, seats left with the right singular or plural, and a price formatted as money.

datetime_tagmoneymoney_with_currencypluralizefilterseventsscheduleworkshopspricebooking

About this block

Shows the date, time_tag, money, money_with_currency and pluralize filters on plain values. date formats a date with strftime codes, time_tag wraps the same in a machine-readable time element, money turns cents into a currency string, and pluralize picks a singular or plural word by number.

How to customize it

  • Amounts are in cents: 4500 shows as $45.00. The currency comes from the site's currency setting, or add currency: 'EUR' to the filter.
  • A date such as 2027-01-16 is read as that calendar day in the site's timezone.
  • To list events from a collection, loop collections.events and print item.date | time_tag and item.price | money.

Browse other blocks

Same library cards — preview live and grab the code from any block.

View full library