adamwojs / ezplatform-migrate-image-asset

An example CLI command to migrate image fields to image asset fields in eZ Platform

Home Page:https://www.ibexa.co/blog/converting-image-fields-to-use-the-image-asset-field-type-in-ez-platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate eZ Platform image field data to image assets

This repository contains an eZ Platform 3.x compatible Symfony command that migrates data from the image field type to the image asset field type.

This script does not do any content type modification, it simply copies and links image data to make moving from image fields to image asset fields easier.

To enable this Command you should make sure it is configured appropriately in config/services.yaml as described in the Symfony Event Dispatcher documentation.

Once enabled you can run the command as follows:

./bin/console app:migrate-image-to-asset success_story screenshot screenshot_asset 9372

Required arguments are:

  • type_identifier: Content type identifier to be modified
  • source_field: Field identifier of source image field
  • target_field: Field identifier of target image asset field
  • target_location: Location id of location where created images are to be placed

More information in the blog post: Converting image fields to use the image asset field type in eZ Platform

About

An example CLI command to migrate image fields to image asset fields in eZ Platform

https://www.ibexa.co/blog/converting-image-fields-to-use-the-image-asset-field-type-in-ez-platform


Languages

Language:PHP 100.0%