Adding theme suggestions for smart_date_recurring_formatter

Created on 6 March 2023, over 1 year ago
Updated 25 May 2023, about 1 year ago

Problem/Motivation

When theming the smart_date_recurring_formatter, there are no theme suggestions to override a specific field.

Proposed resolution

I have made a patch to add the #parent element to the theme variables and added hook_theme_suggestions_HOOK_alter() to create suggestions.

✨ Feature request
Status

Active

Version

3.7

Component

Smart Date Recur

Created by

πŸ‡ΊπŸ‡ΈUnited States seworthi

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.

  • πŸ‡¨πŸ‡¦Canada mandclu

    Interesting suggestion. Can you provide some examples of why this would be needed? I feel like this should be documented if we're going to adopt it.

  • πŸ‡ΊπŸ‡ΈUnited States Zevarix Phoenix, Arizona

    I have re-rolled the 3.7.x patch to version 4.0.x.

    We have been utilizing this patch to override the smart-date-recurring-formatter twig template for recurring Smart Dates in a specific field. The additional theme suggestions allow us to only target recurring smart dates using this field with our template override.

Production build 0.69.0 2024