Migrate tags to blog posts
This commit is contained in:
parent
b5c2b72412
commit
608039b407
14
.idea/saveactions_settings.xml
Normal file
14
.idea/saveactions_settings.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="SaveActionSettings">
|
||||||
|
<option name="actions">
|
||||||
|
<set>
|
||||||
|
<option value="activate" />
|
||||||
|
<option value="activateOnShortcut" />
|
||||||
|
<option value="organizeImports" />
|
||||||
|
<option value="reformatChangedCode" />
|
||||||
|
<option value="rearrange" />
|
||||||
|
</set>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -4,53 +4,69 @@ source:
|
||||||
plugin: url
|
plugin: url
|
||||||
data_fetcher_plugin: http
|
data_fetcher_plugin: http
|
||||||
data_parser_plugin: json
|
data_parser_plugin: json
|
||||||
urls: http://localhost:9000/posts.json
|
|
||||||
|
urls: https://deploy-preview-213--opdavies.netlify.app/posts.json
|
||||||
|
|
||||||
ids:
|
ids:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
|
|
||||||
item_selector: posts/
|
item_selector: posts/
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
-
|
- name: id
|
||||||
name: id
|
|
||||||
selector: id
|
selector: id
|
||||||
label: Node ID
|
label: Node ID
|
||||||
-
|
|
||||||
name: title
|
- name: title
|
||||||
selector: title
|
selector: title
|
||||||
label: Title
|
label: Title
|
||||||
-
|
|
||||||
name: created
|
- name: created
|
||||||
selector: created
|
selector: created
|
||||||
label: Created
|
label: Created
|
||||||
-
|
|
||||||
name: status
|
- name: status
|
||||||
selector: status
|
selector: status
|
||||||
label: Status
|
label: Status
|
||||||
-
|
|
||||||
name: content
|
- name: content
|
||||||
selector: content
|
selector: content
|
||||||
label: Content
|
label: Content
|
||||||
-
|
|
||||||
name: path
|
- name: path
|
||||||
selector: path
|
selector: path
|
||||||
label: Path
|
label: Path
|
||||||
|
|
||||||
|
- name: tags
|
||||||
|
selector: tags
|
||||||
|
label: Tags
|
||||||
|
|
||||||
process:
|
process:
|
||||||
body/0/format:
|
body/0/format:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
default_value: full_html
|
default_value: full_html
|
||||||
|
|
||||||
body/0/value: content
|
body/0/value: content
|
||||||
|
|
||||||
title: title
|
title: title
|
||||||
created: created
|
created: created
|
||||||
changed: created
|
changed: created
|
||||||
path: path
|
path: path
|
||||||
status: status
|
status: status
|
||||||
|
|
||||||
|
field_tags:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: tag_term
|
||||||
|
source: tags
|
||||||
|
|
||||||
type:
|
type:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
default_value: post
|
default_value: post
|
||||||
|
|
||||||
uid:
|
uid:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
default_value: 1
|
default_value: 1
|
||||||
|
|
||||||
destination:
|
destination:
|
||||||
plugin: 'entity:node'
|
plugin: 'entity:node'
|
||||||
|
|
|
@ -6,8 +6,8 @@ source:
|
||||||
data_parser_plugin: json
|
data_parser_plugin: json
|
||||||
urls: https://deploy-preview-213--opdavies.netlify.app/tags.json
|
urls: https://deploy-preview-213--opdavies.netlify.app/tags.json
|
||||||
ids:
|
ids:
|
||||||
id:
|
name:
|
||||||
type: integer
|
type: string
|
||||||
item_selector: tags/
|
item_selector: tags/
|
||||||
fields:
|
fields:
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in a new issue