NationBuilder CSV Importer Tool

This guide explains how administrators can use the NationBuilder CSV Importer Tool to create pages from a CSV file.

#Activating the Tool

  1. Install Public Theme 2026 (fp-public-theme-2026), which includes the tool. For an existing theme, you can instead copy the importer module's HTML and JavaScript from the public theme and connect them to your theme's module system.
  2. Create a new basic page (for example, admin-import-csv-pages) and add the tag module:admin-import-csv-pages.
  3. Open the page while signed in as an administrator.

Creating the Spreadsheet

Create a spreadsheet with one row per page, then export it as a CSV file. Use these column headers:

type, slug, parent, headline, content, excerpt, tags

All column headers are required except excerpt. However, cells in the parent, content, and tags columns may be blank.

If you edit the CSV directly, enclose any cell containing commas or line breaks in double quotes. Escape a double quote within a quoted cell by doubling it (""). Spreadsheet CSV exports normally handle this for you.

Beta Limitations

The tool is still in beta and is being refined:

Importing the CSV

  1. Configuration: Check the Nation slug and site slug (these should be calculated for you). Generate a V2 developer token for the target Nation and paste it into API Test Token. Legacy V1 tokens are not supported.
  2. Upload CSV: Drag the CSV file into the upload area or click the area to choose a file.
  3. Validate and precheck: Click Validate CSV to check the file locally, then Run API precheck to check it against existing pages. Review the results and resolve any errors before continuing.
  4. Import: Review the validated rows and choose whether to enable Publish pages. Select the confirmation checkbox, then click Import pages.

Click the question-mark icons for more information about each step.

NationBuilder Page Importer showing configuration, CSV upload, validation and precheck, and import controls.

Troubleshooting

Important: the tool must be run on the Nation's primary site (the nation slug and nationbuilder.com URL, i.e: https://weafv.nationbuilder.com/). Most of the time there is only one site in the Nation, but if the nation has multiple sites then please run the tool on the primary site, and set the alternative site slug in the configuration section (step 1 above). This is due to the CORS requirements of the Nationbuilder API.