Field formatter looses display mode with custom optionset

Created on 26 September 2023, 9 months ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

Display mode selection is lost after changing settings.

Following the steps below will show the behaviour. If you save after Step 5 you might get the result you want but that is not Drupal workflow best practice I guess.

As soon as you start with a custom slick optionset that you need to switch in the options no display mode is selected at all.

Steps to reproduce

Fresh Drupal install
+ Require Slick, Slick Entity Reference, Slick UI
+ Slick Lib ^1.6

  1. Create 3 articles, add reference to basic page and add the articles.
  2. Switch display from labels to Vanilla Slick -> No display options
  3. Switch display to rendered entity -> No display options
  4. Open Settings and save default display mode
  5. Switch to Vanilla Slick and find optionset and display mode in the summary.
  6. Open settings -> no display mode
  7. Save settings -> display mode disappears and is not used in frontend.

Proposed resolution

Add display mode selection to field formatter for slick entityreference and save everything.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

2.1

Component

User interface

Created by

πŸ‡©πŸ‡ͺGermany rogerpfaff Munich

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

Comments & Activities

Production build 0.69.0 2024