Allow calendar start date to be set from the first view result

Created on 31 October 2018, over 5 years ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

Instead of using either today's date or a fixed date, it'd be extremely useful to allow the start date to be dynamic.

Proposed resolution

Add a display setting to control the source of the start date, with 3 options:

  1. Current date
  2. Date from first view result
  3. Fixed date

Currently, site builders see a single form element for the fixed date, and if that date is empty, we use 'current date'.
Instead, they'd first see a set of radios to select the source.
Only if the source is 'Fixed date' would #states reveal the existing form element for the fixed date.

Remaining tasks

Write and test an upgrade path for the new setting?
Review / test
Commit

User interface changes

New setting (radios) on the display settings form.
Simplification of existing form element's description text (and only show it when needed).

API changes

None.

Data model changes

None. Storage for the new view display setting is handled automatically by views.

✨ Feature request
Status

Fixed

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States fallenturtle

    @WorldFallz how did you make this work with contextual filters? I've been trying to control which month the calendar shows via URL arguments and nothing seems to work for me.

Production build 0.69.0 2024