Add token support for the event URLs

Created on 8 November 2023, 11 months ago
Updated 3 January 2024, 9 months ago

Problem/Motivation

There's a use case where I'd like to use a view with a contextual filter for the full calendar events. This seems like a common-enough use case where it makes sense to add the option for sites which require it given tokens are now supported natively in D9+.

Steps to reproduce

Add a Fullcalender block to a layout builder, but want it to load events contextually based on the current page's entity ID.

We should be able to provide an event source URL such as /node-events/[node:nid] that will get substituted with the relevant token value of the current page which it currently resides on.

Proposed resolution

Add token processing support, replacing the token as necessary, but if it was unable to substitute the token, then it should leave the original URL untouched mitigating risks of a breaking change.

Remaining tasks

User interface changes

There'll be a token browser button attached if the site has the token module installed.
But existing behaviour should stay the same for the most part.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024