Fix the link label as optional instead of required

Created on 30 March 2023, over 1 year ago

Problem/Motivation

Inside of EBT CTA we have a link field, where we can put a link address like http://www.google.com and we can also put the Label, like "Google". And it works fine. But we realized that sometimes we want to use the same utl address as label, for example: http://www.example.com, but since the Label is mandatory, to do this, the content editors needs to always put the same URL address in the URL field and in the Label field with the same value http://www.example.com. It's happening because on link configuration as marked to put the label as required

On that case if we put this Label as "optional" the content editors can just leave the label in blank and the link will automatically use as label the same value as URL field

Steps to reproduce

Proposed resolution

  1. Update the field on block type
  2. Set the label as optional
  3. Export configs
  4. Put the configs at 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.71.5 2024