Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
UVF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reena Raghavan
UVF
Commits
074145e9
Commit
074145e9
authored
Nov 28, 2022
by
Reena Raghavan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Images yml
parent
e6eca8fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
2 deletions
+57
-2
web/modules/custom/uvf_migrate/config/install/migrate_plus.migration.portfolio_csv_import.yml
...g/install/migrate_plus.migration.portfolio_csv_import.yml
+5
-1
web/modules/custom/uvf_migrate/config/install/migrate_plus.migration.portfolio_thumbnail_csv_import.yml
...migrate_plus.migration.portfolio_thumbnail_csv_import.yml
+50
-0
web/modules/custom/uvf_migrate/uvf_migrate.install
web/modules/custom/uvf_migrate/uvf_migrate.install
+2
-1
No files found.
web/modules/custom/uvf_migrate/config/install/migrate_plus.migration.portfolio_csv_import.yml
View file @
074145e9
...
...
@@ -70,7 +70,11 @@ process:
method
:
row
source
:
field_theme
message
:
'
Field
field_theme
is
missing'
field_thumbnail
:
field_thumbnail
field_thumbnail
:
-
plugin
:
migration_lookup
migration
:
portfolio_thumbnail_csv_import
no_stub
:
true
destination
:
plugin
:
entity:node
...
...
web/modules/custom/uvf_migrate/config/install/migrate_plus.migration.portfolio_thumbnail_csv_import.yml
0 → 100644
View file @
074145e9
id
:
portfolio_thumbnail_csv_import
label
:
Import Portfolio Thumbnail
migration_tags
:
-
CSV
migration_group
:
my_custom_migrate
source
:
constants
:
source_base_path
:
/var/www/html/uvf/unicef-if-qed42/docroot/sites/default/files/photos
destination_base_path
:
public://photos
plugin
:
csv
path
:
public://import-sources/portfolio_csv.csv
ids
:
[
nid
]
delimiter
:
'
,'
enclosure
:
'
"'
header_row_count
:
1
keys
:
-
field_thumbnail
process
:
source_full_path
:
-
plugin
:
concat
delimiter
:
/
source
:
-
constants/source_base_path
-
field_thumbnail
-
plugin
:
urlencode
destination_full_path
:
-
plugin
:
concat
delimiter
:
/
source
:
-
constants/destination_base_path
-
field_thumbnail
-
plugin
:
urlencode
uri
:
-
plugin
:
file_copy
source
:
-
'
@source_full_path'
-
'
@destination_full_path'
destination
:
plugin
:
'
entity:file'
migration_dependencies
:
required
:
{
}
optional
:
{
}
\ No newline at end of file
web/modules/custom/uvf_migrate/uvf_migrate.install
View file @
074145e9
...
...
@@ -26,7 +26,8 @@ function uvf_migrate_uninstall() {
'migrate_plus.migration.taxonomy_term_tags_csv_import.yml'
,
'migrate_plus.migration.taxonomy_term_team_member_csv_import.yml'
,
'migrate_plus.migration.taxonomy_term_themes_csv_import.yml'
,
'migrate_plus.migration.user_csv_import.yml'
'migrate_plus.migration.user_csv_import.yml'
,
'migrate_plus.migration.portfolio_thumbnail_csv_import.yml'
];
foreach
(
$configs
as
$config
){
$delete
=
\Drupal
::
database
()
->
delete
(
'config'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment