Field templates and display templates
This section explains how the display templates and field templates are generated and how to change the corresponding settings.
The product display template, product field template and category field template are defined by the following two settings in Litium.AddOns.InRiver.dll.config file.
- productDisplayTemplates
- productFieldTemplates
- categoryFieldTemplates
As at now, multiple templates are not supported.
If the template does not exist already in Litium, it will be re-generated.
If the template exists already, it will NOT be changed.
Product display template
Set the productDisplayTemplates attribute to the corresponding display template in Litium. You can define whether the display template uses a variant url or not.
Format: "<displayTemplateId>:<useVariantUrl (true or false)>"
Example: productDisplayTemplates: "Product:true"
Product field template
Set the productFieldTemplates attribute to the correspoinding product field template in Litium.
Format: "<productFieldTemplateId>:<displayTemplateId>"
Example: productFieldTemplates: "ProductWithVariants:Product"
The display template Id should match the product display template defined in the productDisplayTemplates attribute.
Template fields
Fields of all the inRiver entities that are considered as Litium BaseProducts will be added as base product fields and Litium Variants as variant field to this field template.
Category field template
Set the categoryFieldTemplates attribute to the corresponding category field template in Litium.
Fields of all the inRiver entities that are considered as Litium Categories will be added to this field template.