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

        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: