Import and export events
Export events, event instances, and seasons to a CSV file, and import a CSV file to add or update many records at once.
The Events, Event Instances, and Seasons lists have an import and an export action. An export saves records to a CSV file. An import reads a CSV file and adds or updates records. Use them to move a program from a spreadsheet into Basker, or to change many records at once.
The import and the export use the language that is selected in the admin. To work on a translation, select the language before you start. See Languages and translation.
Export records
Open the list
Open Events, Event Instances, or Seasons. To export only some records, search or filter the list, or select the records.
Open the export
Click the menu button with three dots at the right end of the search bar. Choose Export Events. On the other lists, the item is Export Event Instances or Export Seasons. When you select records, the item shows the number of selected records.
Choose what to export
Under What to export, choose one option:
- Current page: the records on the page of the list that you see.
- All Events: all records in the list.
- Selected: the records that you selected. This option shows only when you select records.
- Matching your search: the records that match your search or filter. This option shows only when you search or filter the list.
Each option shows the number of records.
Choose how links show
Under Relationships, choose how the file shows links to other records, for example the season of an event:
- IDs: the Basker ID of the linked record. Use this to import the file back into Basker.
- Unique keys: a key such as the slug of the linked record. Use this when you edit the file by hand.
Preview and export
To see the rows before you export, click Preview Export. Click Export Events to make the file.
For 50 records or fewer, the file downloads in your browser. For more than 50 records, Basker emails a download link to your account email address. The link expires after 7 days.
Prepare a file to import
Each list accepts a different set of columns. Use the template of the list, or a file that you exported from the same list.
Download the template
Open the import dialog of the list. See Import records. Under CSV Template, click Download Template. The template has one column for each field of the record and one example row.
Enter one record on each row
Replace the example row with your records. Leave the id column empty for a new record. To update a record, keep its Basker ID in the id column. An export includes the ID of each record.
Set the status
A row imports as published. To import a row as a draft, enter draft in the _status column.
To add an image from a web address, enter the address in the image column. The address must start with http:// or https://. Basker downloads the image to your media library. An image can be up to 20 MB. When you import the same address again, Basker uses the same media item.
Import records
Open the import
Open Events, Event Instances, or Seasons. Click the menu button with three dots at the right end of the search bar. Choose Import Events, Import Event Instances, or Import Seasons.

The import dialog of the Events list.
- 1Choose CSV — Opens a file browser to select the CSV file. You can also drop the file on this area.
- 2Import mode — Sets what Basker does with rows that match an existing record.
- 3Relationship resolution — Sets how Basker reads the links to other records.
- 4Download Template — Downloads a CSV file with the columns that this list accepts and one example row.
Choose the file
Click Choose CSV, or drop a CSV file on the dialog. The file can be up to 50 MB.
Choose the import mode
Under Import mode, choose what to do with rows that match an existing record:
- Add new rows: adds new rows. Rows that match an existing record are skipped. This is the default.
- Add new & replace existing: adds new rows and updates the records that already exist.
- Replace existing only: updates the records that already exist. New rows are skipped.
Choose how links are read
Under Relationship resolution, choose how Basker reads links to other records:
- Use IDs as-is: the link columns hold Basker IDs. Choose this for a file that you exported with IDs.
- Resolve by unique key: the link columns hold a unique key, such as a slug. Basker finds the record that has this key.
Start the import
Click Import Events. On the other lists, the button is Import Event Instances or Import Seasons.
Basker matches a row to an existing record by the id column. With Resolve by unique key, a row with no ID matches the record that has the same unique key, for example the same slug. A link value that matches no record is not changed.
The import uses the permissions of your role. It cannot add or change records that your role cannot add or change.
Read the import result
A file smaller than 1 MB imports while the dialog is open. Basker then shows the number of records that were created, updated, skipped, and failed.
A file of 1 MB or more imports in the background. The dialog shows that Basker emails you a summary. You can leave the screen while the import runs.
When some rows fail, the message shows Imported with errors. Click View details to open Import errors. The panel has two tabs:
- Table: the rows of your file. Each value that failed is marked in red.
- Errors: one line for each problem, with the Field, the Value, and the Error. Click View in table to see the row on the Table tab.
The rows that imported stay in Basker. Correct the failed rows, and import only those rows again so that the other rows do not import twice.
Imported with warnings means that all rows imported, but Basker ignored some values. For example, an image that Basker could not download is not added.
Fix a file that does not match
When a file has columns that the list does not accept, Basker does not import any rows. The message says that the CSV does not match the template of the list, and gives the number of unexpected columns. Click View details to see the columns. A file from another list causes this error. Download the template of the list and copy your data into it.