sections in the article
This article describes how to import values into a CVL for String
(single language) and LocaleString
(multiple languages) data types.
When creating a CVL in Control Center, you set the parameter DataType, which selects the CVL's type of data. Options are String
for lists with single language-independent values and LocaleString
for lists with language-dependent values, requiring translation and different values for different languages.
Once you have set up the CVL, you need to fill it with values. This can be done manually, one row at a time, but for larger numbers of values, it may be more convenient to import them from Excel.
Viewing defined languages
Navigate to Control Center > Model > Language to find the list of languages defined in your inriver system.
Language codes consist of two letters within parenthesis, for example, (es) for Spanish and (de) for German. The Excel files use these language codes to identify each language.
Creating the Excel file
- Create an Excel file with the following columns:
- For String:
Key, ParentKey, SortOrder, Deactivated, and Value.
- For LocaleString:
Key, ParentKey, SortOrder, Deactivated, plus a column per language code
(for example Key, ParentKey, SortOrder, Deactivated, en, sv, es, de).
- For String:
- Enter the key value in the cell for the Key column.
The ID can contain letters and numbers and must be unique within the list.Make sure that the Key column does not contain language-specific characters (for example ê, ë, ñ, å, ä, æ, ö, ø).
- Does the value have a parent value in another CVL?
- If no, leave the cell for the ParentKey column blank.
- If yes, enter the value for the parent in the ParentKey column.
Make sure that all values in the ParentKey column match the values in the parent-CVL.
- Enter a number in the cell for the SortOrder column.
This number determines the sort order of the values when the CVL is used in inriver.
- Should the value be initially hidden?
- If no, enter false in the cell for the Deactivated column.
- If yes, enter true in the cell for the Deactivated column.
- Enter the CVL value in the cell for the column Value. Continue until all needed values have been added.
Save the sheet when you are done.
Importing values to a CVL
In Control Center > Model > CVL
do the following:
- Click on the CVL you want to import values to.
The CVL Values page opens.
- Select Import CVL Values from the dropdown menu (...) on the right.
A browsing window opens.
- Locate and select the Excel file that you want to use for the value import on your computer.
The import process starts.
When the import is successful, you receive a confirmation message.
Exporting CVLs
In Control Center > Model > CVL > CVL Values you also have the option to export CVL values for a particular CVL by clicking on Export CVL Values.
Exporting a CVL can be a useful template for your CVL imports.
Comments
2 comments
The "Troubleshooting the Imported Values" isn't up to date with Key column character restrictions. It can accept spaces. See the https://community.inriver.com/hc/en-us/articles/360012339693
(https://community.inriver.com/hc/en-us/articles/360019399913/comments/360002562379)
Please sign in to leave a comment.