Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First, review your proposed taxonomy. Note that each tag must have a unique name (across all levels of the hierarchy). So, for example, we could not have “New York” as both a second-level (state) tag and third-level (city) tag - we have to rename one of them (e.g. “New York City” in this case)

  2. Navigate to Studio Home > Taxonomies. You should see Download Template in the top right. Click on that button, then select “CSV template”.

  3. A file will download automatically. Open it using any spreadsheet application (Excel, Numbers, Google Sheets, etc.).

TODO: finish writing this section-----

  1. The “id” for each tag is required, but mostly relevant when you are aligning your taxonomy with some external system that uses IDs for each tag. If you don’t have that use case, just enter the same text for the id as for the value.

...

  1. It should look like this:

    Image Added

  2. Select and delete all of the entries except the first row, which contains the headings.

    Image Added

Create the first tag

  1. Now, you can start to enter the tags that make up the taxonomy. The order doesn’t really matter, except that any tags which come “below” another tag should also be below/after it in the spreadsheet. For our example taxonomy, we shouldn’t put “California” before “United States”, because the “California” tag is below (is a child of) the “United States” tag.

    Each row in the spreadsheet corresponds to one tag. To create the “United States” tag from our example, we’ll put “1” for the ID and “United States” for the value:

    Image Added

    For a tag like “United States” which is a “root” tag in the taxonomy, we leave “parent_id” empty. We can also leave “comments” empty.

    Choosing an ID: The “id” column is required, but its exact value is not particularly important at this stage. The main requirement is that each row (each tag) has a unique ID. (Though remember that the “values” of each row also must be unique.) For learning purposes, feel free to use numbers like 1, 2, 3, 4 as the IDs. You could also just make the “id” the same as the “value” (i.e. put “United States” as both the ID and the value), or make up a short ID like “USA”. To understand more, and learn how IDs play an important role when updating the taxonomy, please read Concept: Why does each tag need an ID when importing a taxonomy? .

Creating “child” tags

  1. Now, to add the “California” tag, we put it in the next row. Let’s give it the ID “2” and put the value as “California”. Now, because we want this tag to be a “child” of the “United States” tag in our taxonomy, we also need to set the parent_id field. In this case the parent is “United States”, which we gave the ID 1, so we’d put 1 as the parent_id, like this:

    Image Added

  2. Likewise, to create “Los Angeles” as a child tag of “California”, we need to give it an ID (say, 3), and set its parent ID to the ID we gave to “California” (in this case, 2).

    Image Added

    So far, this would result in the following taxonomy:

    • United States

      • California

        • Los Angeles

  3. Now, continue to add the rest of the tags. You can put notes in the “comments” column if you want; that column and any other columns besides “id”, “value”, and “parent_id” are ignored by the system during import.

    Image Added

  4. Save the spreadsheet using the default format (e.g. .xlsx), in case you want to edit it later.

  5. Export the spreadsheet to a CSV file.

    1. In Excel, use File > Save As…, and set the “File format” to “CSV UTF-8 (comma-delimited) (.csv)” (preferred) or “Comma Separated Values (.csv)” then enter a filename and save it.

    2. In Google Sheets, use File > Download > Comma Separated Values (.csv).

    3. In Numbers, use File > Export To > CSV… and use the default options.

  6. Navigate to Studio Home > Taxonomies and click on the Import button at the top right of the screen.

    Image Modified
  7. When prompted, click to select the CSV file from step 4 and upload it.

  8. When prompted, enter a name for the new taxonomy:

...

  1. Image Added

  2. When prompted, enter a description for the taxonomy (recommended but optional).

  3. Then keep the page open until you get this message:

    Image Modified

  4. Find your taxonomy in the list of taxonomies, and click on it to verify the results:

...

  1. Image Added

    (note: at each level, the tags are always sorted in alphabetical order, so the order may have changed from what was in your spreadsheet.)