Skip to content

Commit

Permalink
Make the label more user-friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Dec 19, 2024
1 parent 7a83e87 commit cde59f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Before importing, you will need to do some preparation:
3. You can then map fields from your blueprint to fields/columns in your file.
* Depending on the fieldtype, some fields may have additional options, like "Related Key" or "Create when missing". You can read more about these below.
* Mapping is disabled for some fieldtypes, like the [Replicator fieldtype](https://statamic.dev/fieldtypes/replicator#content). If you wish to import these fields, you will need to build a [custom transformer](#transformers).
* When you're importing taxonomy terms into a non-default site (eg. not the first site) and the slugs differ between sites, you can use the "Default Slug" field to specify the slug of the term in the default site.
* When you're importing taxonomy terms into a non-default site (eg. not the _first_ site you created) and the slugs differ between sites, you can map the "Slug in Default Site" field to the slug of the term in the default site in order for the importer to match up the terms correctly.
4. If you're importing entries, you will also need to specify a "Unique Field". This field will be used to determine if an entry already exists in Statamic.
5. Then, run the import and watch the magic happen! ✨

Expand Down
2 changes: 1 addition & 1 deletion src/Imports/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function mappingFields(): Fields
if ($this->get('destination.site') !== $taxonomy->sites()->first()) {
$blueprint->ensureField('default_slug', [
'type' => 'slug',
'display' => __('Default Slug'),
'display' => __('Slug in Default Site'),
]);
}
}
Expand Down

0 comments on commit cde59f6

Please sign in to comment.