Title / Question as optional is allowing content editors create invalid accordions

Created on 11 March 2023, over 1 year ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

Currently there is a block type for accordion that have a reference for a Paragraph type called ebt_accordion and have two fields: Title / Question and Text / Answer. It's working fine because on accordion we really have a title in the top side and the text after that. But these fields are marked as optional in the CMS so the editors is able to create a block type for accordion without fill this field. It's a invalid case because we can't render the accordion without these infos so I'd say that we can set these fields as required by default in the cms

Steps to reproduce

Proposed resolution

Since the accordion needs to have a title and text I'd suggest to have these fields marked as required by default. So we can set as required in the paragraph type, export the configs, save the config yml object into config/install

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡§πŸ‡·Brazil RenatoG Campinas

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

Comments & Activities

Production build 0.69.0 2024