Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ID | ... | Foto
- ----------------------
- 1 | ... | Foto1.jpg
- ...| ... | ...
- 25 | ... | Foto25.jpg
- source:
- plugin: spreadsheet
- file: modules/custom/zedelgem_migrations/assets/xlsx/gebruikers_zedelgem_intranet.xlsx
- worksheet: 'Gebruikers'
- origin: A2
- header_row: 1
- columns:
- - ID
- - 'Foto'
- - 'Voornaam'
- - 'Achternaam'
- constants:
- file_source_uri: modules/custom/zedelgem_migrations/assets/images/_smoelenboek
- keys:
- ID:
- type: integer
- size: big
- process:
- # Media bundle.
- bundle:
- plugin: default_value
- default_value: image
- uri:
- plugin: concat
- delimiter: /
- source:
- - constants/file_source_uri
- - 'Foto'
- name: 'Foto'
- uid: ID
- field_image/alt:
- concat:
- source:
- - 'Voornaam'
- - 'Achternaam'
- field_image/title:
- concat:
- source:
- - 'Voornaam'
- - 'Achternaam'
- field_image/target_id: 'Foto'
- destination:
- plugin: entity: media
- default_bundle: image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement