- Issue created by @ebremner
- First commit to issue fork.
matthieuscarset → changed the visibility of the branch 3420502-settings-for-hover to hidden.
matthieuscarset → changed the visibility of the branch 3420502-settings-for-hover to active.
- Assigned to matthieuscarset
- Status changed to Needs work
8 months ago 7:35pm 8 April 2024 Working on this issue.
Adding a new settings to the calendar display for rows title attribute - with tokens allowed.
Work in progress.
Pending :
- Document how to use field tokens
- Document solution to format date range items when using field tokens to create title attributes such as: From start date to end date (e.g. Date Range formatter → module)
- Add test
- Issue was unassigned.
- Status changed to Needs review
8 months ago 9:51pm 16 April 2024 New settings available for the title attribute:
- calendar_title
- calendar_row_title
Tokens available - such as:
- calendar_title:
[date:custom:F]
- calendar_row_title:
[date:custom:\W\e\e\k W - F Y]
The calendar timestamp is passed to the token service for date replacements.
User can also use field tokens such as
{{ nid }}
,{{ dates }}
... which are fields you usually added to the View Fields section but Excluded from display.For date range formatting, there are several popular modules which provide custom formatters. I've tried a few and I suggest the following:
Please test the attached MR and let me know.
-
matthieuscarset →
committed a2eba4ff on 2.1.x
Issue #3420502 by ebremner: Settings for hover dates and all day dates
-
matthieuscarset →
committed a2eba4ff on 2.1.x
- Status changed to Fixed
8 months ago 2:49pm 22 April 2024 Marking as fixed - merged on dev branch 2.1.x.
The Calendar view title and rows' title attribute are now handled by a custom settings which allows tokens and takes the current view rendering language value as langcode for token replacements.
In other words, Calendar View can now be configured like in the attached screenshot.
Automatically closed - issue fixed for 2 weeks with no activity.