https://github.com/janit/ezplatform-migrate-image-asset
An example CLI command to migrate image fields to image asset fields in eZ Platform
https://github.com/janit/ezplatform-migrate-image-asset
Last synced: about 2 months ago
JSON representation
An example CLI command to migrate image fields to image asset fields in eZ Platform
- Host: GitHub
- URL: https://github.com/janit/ezplatform-migrate-image-asset
- Owner: janit
- License: mit
- Created: 2020-06-22T14:26:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T21:21:27.000Z (over 5 years ago)
- Last Synced: 2025-02-24T03:37:23.623Z (over 1 year ago)
- Language: PHP
- Homepage: https://www.ibexa.co/blog/converting-image-fields-to-use-the-image-asset-field-type-in-ez-platform
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
Install the bundle using Composer:
```
composer req janit/ezplatform-migrate-image-asset
```
Once installed you can run the command as follows:
```
./bin/console janit: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
## eZ Platform is now Ibexa DXP
Going forward from version 3.2 eZ Platform (Enterprise Edition) will be known as the [Ibexa DXP technology](https://www.ibexa.co/products) that is the base for three products: [Ibexa Content](https://www.ibexa.co/products/ibexa-content), [Ibexa Experience](https://www.ibexa.co/products/ibexa-experience) and [Ibexa Commerce](https://www.ibexa.co/products/ibexa-commerce). Instructions in this code should be relevant since Ibexa DXP is an evolution of eZ Platform, not a revolution. Learn more from the [Ibexa DXP v3.2 launch post](https://www.ibexa.co/blog/product-launch-introducing-ibexa-dxp-3.2) and the [Ibexa developer portal](https://developers.ibexa.co).