Import / Export #
Bring territories in from a file, or take them out as a spreadsheet.
Who can use this #
Site admins.
How to get there #
wp-admin on chronicles.owbn.net → OWBN Territory → Import / Export.
The screen #

Import Territories
- File – a CSV with the columns Country, Region, Location, Detail, Description, Owner, Slug, UpdateDate and UpdateUser, or a JSON export from the old Drupal site.
- Slug behavior on update – when a row matches a territory already here: Merge slugs with existing (default) adds the row's slugs to its links, Replace slugs entirely swaps them.
- Dry run (validate without importing) – checks the file and reports what would happen, changing nothing.
- Import Territories.
- The results: Total, Created, Updated, Skipped, Errors and Warnings, each row's problem listed.
- Expected Formats – the CSV columns and the JSON fields.
Export Territories
- Filter by Slug(s) – comma-separated slugs, or patterns such as
coordinator/**. - Export All or Export Slug(s) – downloads a CSV in the import's format.
Common tasks #
Import a file #
- Choose the File.
- Pick the Slug behavior on update.
- Tick Dry run (validate without importing) and click Import Territories.
- Read the results. Fix the file if anything is skipped or wrong.
- Untick Dry run (validate without importing) and import again.
Export one chronicle's territories #
- Type its slug in Filter by Slug(s).
- Click Export Slug(s).
Things to know #
- A row matches an existing territory when its country, region, location and detail are all the same. A match updates that territory's description, holder, links and dates; anything else becomes a new territory.
- A row with no country, region or location is skipped.
- A country name the importer doesn't know becomes the Unknown Country Code from Territory Manager Settings, with a warning.
- Updates made by an import are logged in each territory's Change History, under the person who ran it.
Troubleshooting #
- "Unsupported file type: … Use CSV or JSON." Save the sheet as CSV.
- Many rows skipped. They have no location data. The dry run lists them by row number.
- Countries came in as Custom/Other. Their names weren't recognised. Fix them in the file, or on each territory afterwards.