Skip to content

What's On

What's On

(...work in progress...)

The Featured Strip component lives on the Event Index Page (aka What's On page) as an optional body block. [^1] Its purpose is to highlight some events at the top of the page.
The strip is set up as a streamfield block [^2] and includes two different cards: the Event Feature Card [^3] allowing the editor to select any existing Event Page and the Custom Event Feature Card [^4] allowing the editor to manually fill the card (built for Membership specifically so far).

Filters

Filter the events by: - 'Type of Event': checkbox - 'Date': checkbox - 'Location': checkbox - 'Audience': checkbox - 'Free events': radio

Backend logic:

Frontend:

  • TateAdvanceFilters.js
  • TateWhatsOn.js
  • _whats_on.sass

Cards

Event cards displayed.

Backend logic:


[^1] added through the model EventIndexPage, referring to the model EventFeatureContentBlock (tate > core > blocks > story.py)

[2] model EventFeatureStripBlock (tate > core > blocks > strips.py) referring to EventFeatureStreamBlock (tate > core > blocks > cards.py)

[^3] model EventFeatureBlock (tate > core > blocks > cards.py)

[^4] model EventFeatureCustomBlock (tate > core > blocks > cards.py)