Hide Rabbit Hole field from UI and enable/disable automatically

Created on 27 January 2023, almost 2 years ago
Updated 28 January 2023, almost 2 years ago

Problem/Motivation

Once the field is ready in πŸ“Œ Create "Rabbit Hole" field type for overrides Fixed , let's make it not configurable via UI. Basically, we have to replicate the Layout Builder feature, where field with section overrides becomes available when "Override" option is enabled.

In our case, the checkbox that either enables or disables the field is available on Rabbit Hole bundle settings:
1) Go to /admin/config/content/rabbit-hole/ page;
2) Configure one of the content types;
3) "Allow these settings to be overridden for individual entities";

If the checkbox is selected, the field should be available, and vice versa.

Please look into Layout Builder implementation for the inspiration:
LayoutBuilderEntityViewDisplay::addSectionField()

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

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

Comments & Activities

Production build 0.71.5 2024