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

Support dynamic Field Groups

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.3.0
    • None
    • None
    • Pulsar
    • Pulsar 237 -DynamicComponents2, Pulsar 238 -DynamicComponents3

    Description

      On JCR level, a field group and its order can be defined by using a 'hst:fieldgroups’ multi string property of component parameter configuration node. 

       

       

      [hst:componentdefinition]
      ...
      - hst:fieldgroups (string) multiple
      //Should be used only for field group parameters
      - * (string) multiple 
      

       

      If a field group is defined both through JCR and annotation, then JCR definition supersedes the one defined by annotation.

      A Field Group parameters can be defined by adding to a catalog item node (hst:componentdefinition) a new multi string property using the following naming convention: 

      hst:fieldgroups.[FIELD GROUP KEY]

      Example:

       

      If the following groups are defined within hst:fieldgroups multi-property:

      • Foo
      • bar.key
      • Foo With Space

       

      Then the following multi-properties that represent parameter names for the groups above should be created:

      • hst:fieldgroups.Foo
        • param1
        • param2
      • hst:fieldgroups.bar.key
        • bar.email
        • bar.name
      • hst:fieldgroups.Foo With Space 
        • document
        • image

       

      If the same field group parameter is specified in multiple field groups, then the only parameter specified within the first field group is effectively used.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            sshepelevich Sergey Shepelevich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: