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

Default values for Dynamic Components do not work for property placeholders for sitemap wildcard matchers

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.4.0
    • None
    • None
    • 0.5
    • Quasar
    • Puma Sprint 247, Puma Sprint 248

    Description

      Consider the component configuration below:

      /product:
        jcr:primaryType: hst:containeritemcomponent
        hst:componentdefinition: hst:components/sample/product
        hst:parameternames: [productId]
        hst:parametervalues: ['${1}']
      

      ${1} will be replaced by the first sitemap item wildcard matched value. In the PMA paramsInfo this will look something like:

      {
         "paramsInfo":{
          "productId":"4876975",
        }
      }
      

      However, if the configuration would not have

       hst:parameternames: [productId]
       hst:parametervalues: ['${1}']
      

      but the component definition would have

      /productId:
        jcr:primaryType: hst:dynamicparameter
        hst:defaultvalue: ${1}
        hst:hideinchannelmanager: true
        hst:valuetype: text
      

      then the paramsInfo would become

      {
         "paramsInfo":{
          "productId":"${1}",
        }
      }
      

      which is undesirable since the ${1} is not replaced. Most likely this is also the case for non-dynamic component parameters but also java interface component parameters

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: