Last active
March 13, 2017 16:40
-
-
Save mharmuth/4a079726a42842c7f26ad2957054be1e to your computer and use it in GitHub Desktop.
Migration from another CMS to Drupal 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: artikel_einstieg | |
status: true | |
label: Artikel Einstieg | |
migration_group: phlexible | |
migration_tags: | |
- artikel | |
source: | |
plugin: url | |
data_fetcher_plugin: http | |
data_parser_plugin: json | |
urls: 'http://my.fancy.project.com/elements?type=artikel_einstieg' | |
item_selector: data | |
fields: | |
- | |
name: tid | |
label: 'Unique element id' | |
selector: tid | |
- | |
name: parent_tid | |
label: 'Parent id' | |
selector: parent_tid | |
- | |
name: seitenkopf_datum | |
label: 'Datum' | |
selector: 'konfiguration_akk/seitenkopf_grp/seitenkopf_datum' | |
- | |
name: seitenkopf_redaktionell | |
label: 'Redaktioneller Titel' | |
selector: 'konfiguration_akk/seitenkopf_grp/seitenkopf_redaktionell' | |
- | |
name: seitenkopf_nav_titel | |
label: 'Meta Titel' | |
selector: 'konfiguration_akk/seitenkopf_grp/seitenkopf_nav_titel' | |
- | |
name: seitenkopf_etracker | |
label: 'etracker Titel' | |
selector: 'konfiguration_akk/seitenkopf_grp/seitenkopf_etracker' | |
ids: | |
tid: | |
type: integer | |
process: | |
title: seitenkopf_nav_titel | |
field_title_tracking: seitenkopf_etracker | |
field_title_meta: seitenkopf_redaktionell | |
created: seitenkopf_datum | |
changed: '@created' | |
uid: | |
plugin: default_value | |
default_value: 73 | |
sticky: | |
plugin: default_value | |
default_value: 0 | |
status: | |
plugin: default_value | |
default_value: 1 | |
promote: | |
plugin: default_value | |
default_value: 0 | |
introduction: | |
- tid | |
- tid | |
field_content_introduction: | |
- | |
plugin: migration | |
migration: | |
- paragraph_text_ueberschrift | |
- paragraph_linklist_introduction | |
no_stub: true | |
source: @introduction | |
- | |
plugin: iterator | |
process: | |
target_id: '0' | |
target_revision_id: '1' | |
destination: | |
plugin: entity:node | |
default_bundle: article | |
migration_dependencies: | |
required: | |
- paragraph_text_ueberschrift | |
- paragraph_linklist_introduction | |
optional: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: paragraph_linklist_introduction | |
migration_group: phlexible | |
migration_tags: | |
- artikel | |
dependencies: | |
enforced: | |
module: | |
- migrate_phlexible | |
source: | |
plugin: url | |
data_fetcher_plugin: http | |
data_parser_plugin: json | |
urls: 'http://my.fancy.project.com/elements?type=artikel_einstieg' | |
item_selector: data | |
fields: | |
- | |
name: tid | |
label: 'Unique element id' | |
selector: tid | |
- | |
name: linkliste_grp | |
label: 'Linkliste Link' | |
selector: 'einleitung_akk/linkliste_grp' | |
ids: | |
tid: | |
type: integer | |
destination: | |
plugin: entity_reference_revisions:paragraph | |
default_bundle: link_list | |
process: | |
field_link_display_type: | |
plugin: default_value | |
default_value: button | |
field_link/title: 'linkliste_grp/linkliste_bezeichnung' | |
field_link/uri: 'linkliste_grp/linkliste_link' | |
migration_dependencies: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: paragraph_text_ueberschrift | |
migration_group: phlexible | |
migration_tags: | |
- artikel | |
dependencies: | |
enforced: | |
module: | |
- migrate_phlexible | |
source: | |
plugin: url | |
data_fetcher_plugin: http | |
data_parser_plugin: json | |
urls: 'http://my.fancy.project.com/elements?type=artikel_einstieg' | |
item_selector: data | |
fields: | |
- | |
name: tid | |
label: 'Unique element id' | |
selector: tid | |
- | |
name: ueberschrift_text | |
label: 'Überschrift Text' | |
selector: 'einleitung_akk/ueberschrift_grp/ueberschrift_text' | |
ids: | |
tid: | |
type: integer | |
destination: | |
plugin: entity_reference_revisions:paragraph | |
default_bundle: text | |
process: | |
field_text_editor: | |
plugin: default_value | |
default_value: null | |
source: ueberschrift_text | |
migration_dependencies: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true, | |
"data": [ | |
{ | |
"parent_tid": "917", | |
"tid": "1811", | |
"elementtype_unique_id": "artikel_einstieg", | |
"path": "840\/841\/917", | |
"konfiguration_akk": { | |
"seitenkopf_grp": { | |
"seitenkopf_datum": 1466413543, | |
"seitenkopf_nav_titel": "Feedback zum Relaunch", | |
"seitenkopf_redaktionell": "Feedback zum Relaunch", | |
"seitenkopf_etracker": "Feedback zum Relaunch", | |
"flyout_infotext": null | |
} | |
}, | |
"einleitung_akk": { | |
"ueberschrift_grp": { | |
"ueberschrift": "Feedback zum Relaunch", | |
"ueberschrift_text": "Wir sind sehr dankbar für Rückmeldung zur neuen Website der BIG. Bitte geben Sie uns Ihr Feedback - zu Inhalten oder aufgetretenen Problemen - über das bereitgestellte Feedback-Formular.", | |
"additional_link": null, | |
"additional_linktext": null | |
}, | |
"linkliste_grp": [ | |
{ | |
"linkliste_headline": null, | |
"linkliste_link": "http:\/\/www.test.de\/problemmeldung\/relaunch.php", | |
"linkliste_bezeichnung": "Feedback-Formular" | |
}, | |
{ | |
"linkliste_headline": null, | |
"linkliste_link": "http:\/\/www.google.de\/", | |
"linkliste_bezeichnung": "Google" | |
} | |
] | |
} | |
}, | |
{ | |
"parent_tid": "1114", | |
"tid": "4287", | |
"elementtype_unique_id": "artikel_einstieg", | |
"path": "840\/841\/938\/1114", | |
"konfiguration_akk": { | |
"seitenkopf_grp": { | |
"seitenkopf_datum": 1480674113, | |
"seitenkopf_nav_titel": "Ambulante Kinderchirurgie", | |
"seitenkopf_redaktionell": "Ambulante Kinderchirurgie", | |
"seitenkopf_etracker": "Ambulante Kinderchirurgie", | |
"flyout_infotext": null | |
} | |
}, | |
"einleitung_akk": { | |
"ueberschrift_grp": { | |
"ueberschrift": "Ambulante Kinderchirurgie", | |
"ueberschrift_text": "Krankenhausaufenthalte sind für Erwachsene schon nicht schön, aber für Kinder noch weniger. Glücklicherweise können chirurgische Routineeingriffe mit moderner Medizin oft ambulant durchgeführt werden.", | |
"additional_link": null, | |
"additional_linktext": null | |
}, | |
"linkliste_grp": [ | |
{ | |
"linkliste_headline": null, | |
"linkliste_link": null, | |
"linkliste_bezeichnung": null | |
} | |
] | |
} | |
}, | |
{ | |
"parent_tid": "1114", | |
"tid": "1540", | |
"elementtype_unique_id": "artikel_einstieg", | |
"path": "840\/841\/938\/1114", | |
"konfiguration_akk": { | |
"seitenkopf_grp": { | |
"seitenkopf_datum": 1480674065, | |
"seitenkopf_nav_titel": "Ärztliche Behandlung", | |
"seitenkopf_redaktionell": "Ärztliche Behandlung beim Arzt Ihres Vertrauens", | |
"seitenkopf_etracker": "Ärztliche Behandlung", | |
"flyout_infotext": null | |
} | |
}, | |
"einleitung_akk": { | |
"ueberschrift_grp": { | |
"ueberschrift": "Ärztliche Behandlung – Sie haben die Wahl", | |
"ueberschrift_text": "Mit Ihrer BIG-Krankenversichertenkarte haben Sie Zugang zu allen zugelassenen Ärzten und Zahnärzten in Deutschland. Legen Sie einfach Ihre BIG-Krankenversichertenkarte vor, wir übernehmen die Kosten.", | |
"additional_link": null, | |
"additional_linktext": null | |
}, | |
"linkliste_grp": [ | |
{ | |
"linkliste_headline": "Fancy Headline", | |
"linkliste_link": "http:\/\/www.dude.de\/", | |
"linkliste_bezeichnung": "Dude" | |
} | |
] | |
} | |
}, | |
{ | |
"parent_tid": "1114", | |
"tid": "1166", | |
"elementtype_unique_id": "artikel_einstieg", | |
"path": "840\/841\/938\/1114", | |
"konfiguration_akk": { | |
"seitenkopf_grp": { | |
"seitenkopf_datum": 1470660630, | |
"seitenkopf_nav_titel": "Auslandskrankenschutz", | |
"seitenkopf_redaktionell": "Auslandskrankenschutz - sicher unterwegs", | |
"seitenkopf_etracker": "Auslandskrankenschutz", | |
"flyout_infotext": null | |
} | |
}, | |
"einleitung_akk": { | |
"ueberschrift_grp": { | |
"ueberschrift": "Auslandskrankenschutz - sicher unterwegs", | |
"ueberschrift_text": "Mit der BIG können Sie Ihren Urlaub unbeschwert genießen. In allen Ländern, mit denen ein Abkommen über Krankenversicherungsschutz im Ausland besteht, werden Sie im Notfall behandelt.", | |
"additional_link": null, | |
"additional_linktext": null | |
}, | |
"linkliste_grp": [ | |
{ | |
"linkliste_headline": null, | |
"linkliste_link": null, | |
"linkliste_bezeichnung": null | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment