Attribute Metadata - PrintTemplateName
Attribute Metadata - PrintTemplateName
printTemplateName metadata is used with reference attributes to display the name of the template, on which the referred data card bases. Since one reference attribute can belong to several templates, showing the name of referred template on the data cards is advantageous and may even prevent from potential misunderstandings.
If you denote printTemplateName in an attribute metadata, the data card displays the name of the referred template next to a reference attribute only when you edit the data card. After saving the data card, the name of the referred template disappears.
You can specify the display option with metadata values oneHit or always. When using the value oneHit, the data card displays the name of the referred template only if it is the single result a search returns, and the referred data card will be created automatically. When using the value always, the data card displays the name of the referred template next to the referrer by default.
Attribute with printTemplateName configured:
![]()
Do not use printTemplateName metadata in attributes that include a special handler. Especially handlers like AttributeCombiner that generate a combined attribute value may cause unwanted value combinations and even cause loss of data.
Table 1. Optional attribute metadata
| Name | Value | Description |
|---|---|---|
printTemplateName |
[oneHit | always] |
If value is If value is |