Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature documentation - migration of attachments and media files to content hub #244

Closed
tkrch opened this issue Sep 5, 2024 · 0 comments · Fixed by #255
Closed

New feature documentation - migration of attachments and media files to content hub #244

tkrch opened this issue Sep 5, 2024 · 0 comments · Fixed by #255
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@tkrch
Copy link
Collaborator

tkrch commented Sep 5, 2024

PR #243 adds ability to migrate all media files and attachments to content hub.

this feature is activated in appsettings.json with following setting.
"MigrateMediaToMediaLibrary": false,

this will be default setting after documentation and further tests.

Feature description

Media libraries are migrated into content folder named "[SiteName]/[LibraryFolder]". All of them are migrated only to default language to avoid unwanted replication of file binaries over all language versions (Media library was language agnostic)

Attachments are migrated into content folder named "[SiteName]/__Attachments". They respect language version when language version is known (for example when attachment is use on document)

References to media file & attachments

references are migrated to content item references anywhere where we know about them (Content item types, widgets). There is option to define this migration explicitly for field and form control in following way (in appsettings.json section Settings:OptInFeatures:CustomMigration:FieldMigrations):

{
  "SourceDataType": "text",
  "TargetDataType": "contentitemreference",
  "SourceFormControl": "MediaSelectionControl",
  "TargetFormComponent": "Kentico.Administration.ContentItemSelector",
  "Actions": [
    "convert to asset"
  ],
  "FieldNameRegex": ".*"
}

Possible customization of feature

the manner in which are entites converted and store can be customized inside class Migration.Toolkit.Source.Services.AssetFacade

@tkrch tkrch added the documentation Improvements or additions to documentation label Sep 5, 2024
@tkrch tkrch closed this as completed in #255 Oct 7, 2024
tkrch added a commit that referenced this issue Oct 7, 2024
…on-to-content-hub

#244 Migrate ML files and attachments to the content hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
2 participants