Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4622

Generate content blocks in runtime beans which include custom compound types

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      A content block can be defined as a compound type by using ContentBlocksFieldPlugin type in the cms editor. This case isn't supported by runtime beans and should be added.

       

      /hippo:namespaces/connect/documentation/hipposysedit:nodetype/hipposysedit:nodetype/contentblocks:
        jcr:primaryType: frontend:plugin
        caption: Content blocks
        contentPickerType: links
        cpItemsPath: connect:contentblocks
        engine: ${engine}
        field: contentblocks
        mode: ${mode}
        model.compareTo: ${model.compareTo}
        plugin.class: org.onehippo.forge.contentblocks.ContentBlocksFieldPlugin
        validator.id: ${validator.id}
        wicket.id: ${cluster.id}.left.item
        wicket.model: ${wicket.model}
        /cluster.options:
          jcr:primaryType: frontend:pluginconfig
          last.visited.enabled: 'true'
      

       

      /hippo:namespaces/connect/documentation/editor:templates/_default_/contentblocks:
        jcr:primaryType: hipposysedit:field
        hipposysedit:mandatory: false
        hipposysedit:multiple: true
        hipposysedit:ordered: true
        hipposysedit:path: connect:contentblocks
        hipposysedit:primary: false
        hipposysedit:type: hippo:compound
      

       

      To reproduce the case;

      1. Run hippo-connect project.
      2. In DocumentationDocument.java file, change the name of method getParagraphs to any other name and update its caller references.
      3. When you open a page that includes content blocks would fail now (eg: https://documentation.bloomreach.com/library/about/understand-brxm.html).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ekarakus Erdem Karakus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: