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

Unable to create with template editor empty (string array) multivalued property

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.01.00m03
    • 2.01.00m07-rc1
    • front-end-core
    • None

    Description

      It is not possible to create a property and leave it empty (not even "") with current template engine.

      For example, I have

      [hippo:facetselect] > nt:unstructured

      • hippo:docbase (string) mandatory
      • hippo:facets (string) mandatory multiple
      • hippo:values (string) mandatory multiple
      • hippo:modes (string) mandatory multiple < 'select', 'stick', 'clear'
        + * multiple

      as nodetype for facetselect, BUT, I need to be able to create

      node = node.addNode("n", HippoNodeType.NT_FACETSELECT);
      node.setProperty(HippoNodeType.HIPPO_DOCBASE, "/test");
      node.setProperty(HippoNodeType.HIPPO_FACETS, new String[] { });
      node.setProperty(HippoNodeType.HIPPO_VALUES, new String[] { });
      node.setProperty(HippoNodeType.HIPPO_MODES, new String[] { });

      So, only adding the property, but have an empty string array

      Attachments

        Issue Links

          Activity

            People

              fvlankvelt Frank van Lankvelt (Inactive)
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified