Create a CSV file
Rely on the file template .csv which respects the format of the configuration in Stores > Configuration > Blackbird Extensions > Metadata Importer > CSV Configuration.
The first line represents the name of the columns. The column “source” is mandatory but his name could be modified in the configuration.
Each line represents one url source that is linked to titles or metadatas. The list of available column is :
source (mandatory) |
store_ids |
active |
test_mode |
title |
h1 |
Custom Metadata Name |
my/url/source |
0 |
1 |
1 |
My page Title |
My content main Title (h1) |
My custom metadata value. |
https://mydomain.com/my/url |
1/2 |
0 |
1 |
My content Title |
The name of the columns is corresponding to the default values of the field names of columns that are defined in the configuration.
The columns are delimited by the “delimiter” (,), the values are encapsulated by the “enclosure” ( “ ) and the store_ids are delimited by the “store_ids delimiter” ( / ) which gives the following example :
example.csv :
“source”,”store_ids”,”active”,”test_mode,”title”,”h1”,”Custom Metadata Name” “my/url/source”,”0",”1”,”1”,”My page Title”, “My Content Title (h1)”, “My custom metadata value.” “https://mydomain.com/my/url”,”1/2",”0”,”1”,, “My Content Title”, |
source (mandatory) |
The source url that will be used to link metadatas. |
|
store_ids |
The store view id(s) on which metadatas will be applied. If id is 0, it means that metadatas will be applied on all store views. The values of stores are delimited by the “store delimiter” in the configuration. Default : /. |
|
active |
Define if the metadata entry is active. (1 = active, 2 = inactive). |
|
test_mode |
Défine if the test mode is active for the metadata entry. (1 = active, 2 = inactive). |
|
title |
The title of the page to be shown. |
|
h1 |
The title of the main header (h1) to be shown. |
|
Custom Metadata Name |
The column Custom Metadata Name is an additional column which defines a metadata to add. You can add as many columns as you need. The metadatas will be displayed in the page like this :
|
In the case where one of the optional fields is not filed out, the imported metadatas entries will take the default value defined in the configuration.