#
Migrations
#
Introduction
Rocket CLI utilizes contentful-migration to provide the ability to migrate a set of pre-built content types
During the rocket ignite
and contentful add
process, there is an option to select which of the recommended content types to migrate to your space. Some types have dependencies on each other. Unless a selection is made that is incompatible with these dependencies, the migration cannot be performed.
We recommend migrating all recommended content types.
The migration process performs migrations for all existing environments. When setting up Contentful for the first time, it is not necessary to set up all environments before running the migration process, because when creating new environments, the content types are automatically transfered to the new environment from the "master" environment.
For more information about content types, see this Contentful documentation.
#
Recommend content types
The diagram below provides an overview of the recommended content types and their relationships:
flowchart TD Page --> Metadata Page --> PageSection ImageTextLinkElement --> Image ImageTextLinkElement --> Link PageSection --> Image PageSection --> ImageTextLinkElement PageSection --> RichText PageSection --> Button PageSection --> TechnicalElement NavElement --> NavElement Button SiteSettings Footer
#
Page
#
Metadata
The Metadata is used to set meta data of a page.
#
PageSection
The PageSection is used to structure the page.
* Items:
#
ImageTextLinkElement
The ImageTextLinkElement is used to group an image, title, text and link.
#
Technical Element
The Technical Element is used to include a reference to a frontend component in a page section.
#
Image
#
RichText
#
Button
* type: "primary" | "secondary".
* externalLink: link to an external url.
* internallLink: link to an internal page.
* target: opens link in a new tab.
#
Link
* externalLink: link to an external url.
* internallLink: link to an internal page.
* target: opens link in a new tab.
#
SiteSettings
SiteSettings is used to to set global settings.
#
NavElement
#
Footer
#
How to structure a page?
The structure below shows an example of how a page can be structured with the recommended content types.