Upgrade the ContentGui module

Edit on GitHub

Upgrading from version 1.* to version 2.*

Version 2.0.0 of the ContentGui module introduces the Content Items functionality that allows creating and managing content and later selecting where it should be inserted.

The ContentGui module version 2.0.0 introduced the following changes:

  • Adjusted models to support parameter KEY of Content.
  • Introduced the ContentTransfer::$key transfer object property.
  • Changed a header in EditContent/index.twig to use a key instead of the ID.
  • Increased the version of spryker/content in composer.json.

You can find more details about the changes on the ContentGui module release notes page.

Estimated migration time: 30 minutes

To upgrade to the new version of the module, do the following:

  1. Perform the steps in Migration Guide - Content.
  2. Upgrade the ContentGui module to version 2.0.0:
composer require spryker/content-gui:"^2.0.0" --update-with-dependencies
  1. Run the following command to re-generate transfer objects:
console transfer:generate
  1. Run the following command to re-build Zed UI:
console frontend:zed:build