This script creates an array of entries (categories). Then the field sitemap navigation is updated with the created entries.
- Gets the environment.
- Extracts categories from the full-kit.
- Creates the categorie entries.
- Updates the field with the created entries.
- cd into 2023-05-12-Footer-Sitemap-Navigation
- Run node index.js.
- accessToken - contentful access token (Generate your own accessToken).
- space - contentful space information for targeted market.
- spaceId - contentful spaceId for required market
- environmentId: contentful environmentId for required market
- locale - contentful local for required market (To find the local, click on Settings -> locales. You should see a default locale.)
- footerId - the id of the footer to update.
- excel - excel file to use as input.
- path - relative path to the excel file.
- sheetName - the name of the sheet to work with.