Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
14.5.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.
Designs
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