Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14685

Visual editor does not support 'maxitems' for multiples, nor remove/add the only item

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.5.0
    • 14.7.0
    • None
    • 0.5
    • Flagged
    • Quasar
    • Puma Sprint 264, Puma Sprint 265, Puma Sprint 266

    Description

      In 14.5, per CMS-12620, Visual Editing supports adding and removing fields in compounds.

      However, it does not take into account the maxitems setting, as documented at https://documentation.bloomreach.com/14/library/concepts/editor-interface/limit-the-number-of-fields-that-can-be-added-to-a-multiple.html

      This goes for multiple properties (already there before 14.5), multiple compounds as well as for content blocks.

      A) If a user tries to add an extra field, either in content blocks or multiple compound, there's a toast message "Failed to add a field value" and a back-end logging:

      WARN  http-nio-8080-exec-8 [NodeFieldServiceImpl.addNodeField:82] Cannot add field 'myproject:multilink[3]', the maximum amount of fields allowed is 2
      

      In the content editor, the presence of add/remove controls react on the maxitems settings, plus there are hints.

      B) For a required multiple compound field, a user cannot remove an already added value, then add a new one. So for Content Blocks, this prohibits replacing one type with another.

      See and

       

      Designs

      https://bloomreach.invisionapp.com/overview/UX-issues-ckemg823415qp01wla1eu1m86/screens/49339667?sortBy=1&sortOrder=1&viewLayout=2

      Maxitems for multiple fields: 
      https://bloomreach.invisionapp.com/console/UX-issues-ckemg823415qp01wla1eu1m86/ckqb295xu0bc5013uehhs6lkk/play

      Maxitems for multiple compounds:
      https://bloomreach.invisionapp.com/console/UX-issues-ckemg823415qp01wla1eu1m86/ckqb2jvg004pf012icz52hsuw/play#project_console

      Maxitems for content blocks:
      https://bloomreach.invisionapp.com/console/UX-issues-ckemg823415qp01wla1eu1m86/ckqb2jvg004pg012ihsnv3s6y/play#project_console

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: