Show upcoming date only when multiple

Created on 20 May 2025, 15 days ago

Problem/Motivation

I want to be able to display only the next upcoming date in certain view modes when i have a multivalued date field.

Steps to reproduce

- Create a multivalued smart date field on a content type.
- Create the content with multiple date values.
- For now it's not possible to only display the next upcoming date.

Proposed resolution

Create a new field formatter to oly display the next upcoming date.

Feature request
Status

Active

Version

4.2

Component

Code

Created by

🇧🇪Belgium arwillame Belgium 🇧🇪

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

Merge Requests

Comments & Activities

  • Issue created by @arwillame
  • Pipeline finished with Failed
    15 days ago
    Total: 233s
    #501586
  • 🇨🇦Canada mandclu

    What you're asking for is possible using Smart Date's Recurring formatter, which can work with dates that aren't recurring. You will need to install the submodule, however.

    Here are the settings I would recommend for the formatter:

    Force chronological: enabled
    Recent Instances: 0
    Upcoming Instances: 1
    Show next instance separately: enabled

    Based on my testing this works exactly as you describe.

  • Pipeline finished with Failed
    15 days ago
    Total: 172s
    #501616
  • Pipeline finished with Success
    15 days ago
    Total: 150s
    #501621
  • Pipeline finished with Failed
    4 days ago
    Total: 152s
    #510311
Production build 0.71.5 2024