Show upcoming date only when multiple

Created on 20 May 2025, about 1 month 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
    about 1 month 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
    about 1 month ago
    Total: 172s
    #501616
  • Pipeline finished with Success
    about 1 month ago
    Total: 150s
    #501621
  • Pipeline finished with Failed
    25 days ago
    Total: 152s
    #510311
  • 🇨🇦Canada mandclu

    I documented the steps to reproduce what you are looking for using an existing formatter. You haven't responded to the steps I took the time to document, so I can only assume you don't dispute that they work without the need for additional code.

    If you prefer to user your own, custom formatter then that is also a completely valid approach, but as of now I see no reason to add it to the Smart Date codebase.

  • Pipeline finished with Success
    6 days ago
    Total: 191s
    #525095
Production build 0.71.5 2024