Glossary loader¶
It loads given rows to the spy_glossary_key table and the spy_glossary_translation table. After loading it also triggers the publish events for glossary.
Configuration¶
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
name of the field containing the key |
|
Attribute |
name of the field containing the value for translation table |
|
Attribute |
name of the field containing the fk_locale for translation table |
|
Attribute (optional) |
name of the field containing the localized key values |
|
Attribute (optional) |
if set to |
Example 1¶
Input data¶
Row |
key |
translation |
localeId |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |
Pipeline configuration¶
<glossary
keyField="key"
translationField="translation"
localeIdField="localeId"
/>
Example 2¶
This example uses the optional localizedKeyValuesField.
The keyField and translationField have to match the provided array.
The localeIdField can be set to any string.
Input data¶
Row |
localizedKeyValues |
|---|---|
1 |
Array: |
2 |
Array: |
Pipeline configuration¶
<glossary
keyField="key"
translationField="translation"
localeIdField="localeId"
localizedKeyValuesField="localizedKeyValues"
/>