Closed (fixed)
Project:
Display fields
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2018 at 13:13 UTC
Updated:
18 Jul 2022 at 15:29 UTC
Jump to comment: Most recent
Comments
Comment #2
dakwamine#3268106: [META] Major update for display_fields provides a partial fix for this issue.
The partial fix fixes the region form widget of the display_fields field which caused a JS error in Field UI. But it did not fix the Moving the field enabled > disabled + save scenario. It looks like the region is not correctly set on the display field config on save.
The workaround is to edit the configuration files and import them.
Example for a field to disable
We need to edit two files, the view display config and the display field configured on this view mode:
In those files, we need to move the display_fields to the hidden section:
diff --git a/src/config/sync/core.entity_view_display.taxonomy_term.new_star.modal.yml b/src/config/sync/core.entity_view_display.taxonomy_term.new_star.modal.yml index a0aaba50..9a6d32c3 100644 --- a/src/config/sync/core.entity_view_display.taxonomy_term.new_star.modal.yml +++ b/src/config/sync/core.entity_view_display.taxonomy_term.new_star.modal.yml @@ -41,7 +41,6 @@ third_party_settings: group_card_again: children: - field_image - - display_fields_clone__name parent_name: group_wrapper_description weight: 2 format_type: html_element @@ -170,4 +169,5 @@ content: field_formatter_class: class: '' hidden: + display_fields_clone__name: true langcode: true diff --git a/src/config/sync/display_fields.display_fields_view.taxonomy_term.new_star.modal.yml b/src/config/sync/display_fields.display_fields_view.taxonomy_term.new_star.modal.yml index 60d46fb4..4034c85d 100644 --- a/src/config/sync/display_fields.display_fields_view.taxonomy_term.new_star.modal.yml +++ b/src/config/sync/display_fields.display_fields_view.taxonomy_term.new_star.modal.yml @@ -10,13 +10,6 @@ targetEntityType: taxonomy_term bundle: new_star mode: modal content: - clone__name: - type: string - weight: '3' - settings: { } - label: hidden - third_party_settings: { } - region: content description: label: hidden type: text_default @@ -32,6 +25,7 @@ content: third_party_settings: { } region: content hidden: + clone__name: true field_call_to_action: true field_description_title: true field_image: trueComment #3
delta commentedsee https://www.drupal.org/project/display_fields/releases/9.0.0-beta1
Comment #4
delta commented