ChildBucket_KeyValueById
| Description | A generic key value placeholder that gets a dynamic value of key value by identifier, dynamic value means Xpath value. Can be used for individual values inside of the ChildBucketTable. |
| Placeholder Id | 537688584 |
| Placeholder type | Text |
| Entity | Placeholder should work with KeyValue records |
| Context | Supported: _language and _country |
| Function variables | Xpath: xpath partern to get value of KeyValue example: concat(@value, '-', ' $') |
| Data Query | EntityManager.getEntityKeyValuesByIdentifier |
| Data Mapping | com.priint.accpack.childbuckettable..datamapping.KeyValueDataMapping.keyValueToString |
| Data Processing | com.priint.pubserver.comet.bridge.dataprocessing.HtmlFunctions.tidyToXhtml and com.priint.pubserver.comet.bridge.dataprocessing.HtmlFunctions.htmlToTaggedText: Convert html tag to tagged text(Default).Or com.priint.pubserver.plugins.dataprocessing.htmlToPlainText : Remove all html tags |
How to Add This Placeholder to the Child Bucket Table
- Set
placeholderId="537688584"attribute on the<keyValue>element. - Set a function variable as a child element of
<keyValue>.
- Using a simple XPath expression:
<keyValue entityIdentifier="product_attribute" key="plant_name" cellValue="@value" placeholderId="537688584" >
<functionVariables>
<variable name="xpath" value="@value"/>
</functionVariables>
</keyValue>
- Using a plugin method:
<keyValue entityIdentifier="product_attribute" key="plant_name" cellValue="plugin(globalName='com.priint.project.demo.ChildBucketTableTransformPlugin',methodName='transformName')" placeholderId="537688584">
<functionVariables>
<variable name="xpath" value="plugin(globalName='com.priint.project.demo.ChildBucketTableTransformPlugin',methodName='transformName')"/>
</functionVariables>
</keyValue>