Skip to content

Commit

Permalink
release(2.20.2): add field_allegati to circolare_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
arturu committed Apr 23, 2024
1 parent 842451d commit 8f157bd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/install/migrate_plus.migration.demo_circolare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ source:
- name: data_oblio
label: "Oblio documento"
selector: attributes/data_oblio
- name: document_url
label: "URL del documento"
selector: relationships/document/data/url
- name: document
label: "I metadata del documento"
selector: relationships/document
- name: eventi
label: 'Eventi correlati'
selector: relationships/eventi/data
Expand Down Expand Up @@ -134,6 +140,18 @@ process:
plugin: skip_on_empty
source: data_oblio
method: process
field_allegati/target_id:
plugin: file_import
source: document_url
destination: constants/documents_media_path
uid: '@_file_uid'
file_exists: 'replace'
skip_on_missing_source: true
id_only: true
field_allegati/description:
plugin: skip_on_empty
source: document/data/description
method: process
field_eventi:
- plugin: skip_on_empty
source: eventi
Expand Down

0 comments on commit 8f157bd

Please sign in to comment.