Problem with Field Templates and the description field of a taxonomy term

Created on 5 April 2024, 9 months ago
Updated 9 May 2024, 7 months ago

Problem/Motivation

Attempting to modify the settings of the Description field template for a taxonomy term always displays empty fields, even if the template has been edited previously.

Steps to reproduce

Enabling 'Field Templates' in the settings, if I try to modify the template of the fixed description field of a taxonomy term, the input form in the Display Management allows me to enter values but does not display the previously entered values.
For example, if I set 'Expert' as the field template and enter new css classes in the Outer wrapper, these are applied to the field.
However, if I reopen the field for editing the class, the previously entered parameters are not displayed. I can see only empty fields.

🐛 Bug report
Status

Fixed

Version

3.20

Component

User interface

Created by

🇮🇹Italy davidebarbato

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

Comments & Activities

  • Issue created by @davidebarbato
  • 🇧🇪Belgium swentel

    Hmm you're absolutely right, I can easily reproduce as well. It seems to work for other field though, but not description, looking into it!

  • 🇧🇪Belgium swentel

    The interesting thing is, if you configure, and then save, everything is fine, also during rendering, it's Field UI though where something goes wrong, still digging :)

  • Status changed to Needs review 8 months ago
  • 🇧🇪Belgium swentel

    I think I have it! Are you able to test this patch? I'll be testing it in many places to make sure I haven't broken anything as this is tricky stuff :)

  • Status changed to RTBC 8 months ago
  • Hi all,

    I tested the patch in #4 on Drupal version 10.2.5 for Display Suite version 8.x-3.20.

    The patch was applied successfully. When I reopened the field to edit the class, the previously entered parameters are displaying. The class is also applied to the field. I uploaded the screen recording video.

    Thanks for your contributions.

    • swentel committed 50706dfb on 8.x-3.x
      Issue #3438870 by swentel, fulya.ozsan, davidebarbato: Problem with...
  • Status changed to Fixed 8 months ago
  • 🇧🇪Belgium swentel

    ok, committed and pushed.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024