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

Additional collapse behaviours for content blocks

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.2.1
    • 15.5.0, 16.0.0
    • None
    • 3
    • Orion
    • Orion.Cycle8.Sprint2, Orion.Cycle8.Sprint3

    Description

      For my own project I've modified the contentblocks plugin to have some extra collapse behaviours. The reason for this being that in documents with a large number of content block elements, usability rapidly decreases. 

      I've added three more options to the contentblocks plugin that  can be setup in the cluster configuration associated with the contentblock.

      • startCollapsed (boolean) - if set to true, the content blocks plugin shows all child elements as collapsed when first shown
      • showTitles (boolean) - if set to true, an additional title is included in the header based on the mapping below
      • titleMapping (string[]) - an array of strings formatted as `ns:compoundname=ns:fieldname` 

      An example of the above as configured in the console:

      and the result in the CMS frontend:

      I've also attached the diff for the contentblock project, it is only a minor change. I've made the changes in the 14.2.1 version of the plugin, as that was the latest release tag I could find online. 

      I could manage the plugin separately, but ideally (if you feel the functionality is appropriate) this behaviour gets merged into the plugin itself.

      I'd give permission to release this under the license required by bloomreach. 

       

       

       

      Attachments

        1. contentblock-flags.diff
          7 kB
          Marnix Kok
        2. image-2020-10-23-10-31-42-389.png
          25 kB
          Marnix Kok
        3. image-2020-10-23-10-32-16-097.png
          31 kB
          Marnix Kok
        4. Screenshot 2023-11-06 at 16.15.54.png
          149 kB
          George Vletsas

        Issue Links

          Activity

            People

              Shubham.sharma@bloomreach.com Shubham Sharma
              marnix Marnix Kok
              UX Issues UX Issues
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: