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

Support of inner non primitive fields and compound type fields in a compound type

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Pulsar
    • Pulsar 230 - Content Feed, Pulsar 231 - Content Feed

    Description

      When we have non primitive fields like inner compound types, selections/taxonomy fields in a multiple or single compound type, we can append the values of the fields of inner non primitive field into the array of the compound time.

      For example, we have a compound type named author and it has a multiple compound type accounts.

       

      definitions:
        config:
          /hippo:namespaces/hap/account:
            /hipposysedit:nodetype:
              /hipposysedit:nodetype:
                /type:
                  hipposysedit:type: DynamicDropdown
                  hipposysedit:multiple: true
                /link:
                  hipposysedit:type: String
          /hippo:namespaces/hap/author:
            /hipposysedit:nodetype:
              /hipposysedit:nodetype:
                /fullname:
                  hipposysedit:type: String
                /accounts:
                  hipposysedit:type: hap:account
                  hipposysedit:multiple: true
      
      

       

      The generated json output could be as follows. We append the values of the key and value fields into to the field array.

          "attributes": {
            "fullname": "Hippo Author",
            "accounts.type": [
              “key1 Github development platform ”,
              “key2 Twitter”
            ],
            "accounts.link": [
              "https://github.com/onehippo",
              "https://twitter.com/onehippo"
            ]
       }
      

       

      Normally DynamicDropdown field returns the json as below. 

           “type.selectionValues.Key": [
              “key1”,
              “key2”
            ],
            “type.selectionValues.Label": [
              “Github development platform”,
              “Twitter”
            ]
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cgul Cuneyt Gul
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: