Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
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