This feature is available fromAmetys version 4.4.
The CSV content import function is available in the Administration tab, and enables content to be imported into Ametys from a .txt or .csv file.
This functionality is subject to the Administration/Import content right.
When you click on the CSV content import button, the following window opens, allowing you to configure :
Parameter |
Description |
Mandatory |
File |
.csv or .txt file containing the information to be imported. The first line of the file corresponds to the column names. For attached attributes, you can use the / character. In this way, subfields will be found directly during mapping in step 2. Each row corresponds to a content item to be imported, with one value per column. |
Yes |
Separation character |
Character separating each value. Default value ; |
Yes |
Escape character |
Escape character for special characters. Default value '' |
Yes |
Content type |
The type of content to be imported (choose from the drop-down list). |
Yes |
After clicking OK in step 1, the following window opens:
It consists of the following parameters to be filled in:
Parameter |
Description |
Mandatory |
Creative action |
Corresponds to the number of the creation action in the workflow of the content to be imported |
Yes |
Modification action |
Corresponds to the modification action number in the workflow of the content to be imported |
Yes |
Lifecycle |
Lifecycle of the content to be imported, selected from a list |
Yes |
Language |
Select language Optional |
No |
Then a table containing the columns below, to define the mapping between file headers and content attributes.
This table contains one row per column from the CSV file.
Linked content can be imported.
Header CSV |
Corresponds to the columns in the CSV |
Content attribute |
Name of the content attribute corresponding to the column in the CSV file. Autocomplete is available and proposes the attributes of the content to be imported. The attribute name is automatically filled in if the header name matches an attribute of the content to be imported. The . character is used for attached attributes. |
Identifiers |
Check the box if this attribute corresponds to an identifier. This identifier is unique for each content.
If two imports are performed with content containing the same identifier value, then :
|
After clicking on OK, the import is launched in the background, and a notification bubble indicates the status of the import (number of imported contents/errors).