Skip to content

Using Sulu with existing content from a different CMS #6671

Discussion options

You must be logged in to vote

Hello @brachycera,

Not 100% sure if I understand your usecase. If we did migrate currently another CMS example Drupal to Sulu. I added an additional DBAL Connection to the other CMS database (mostly it was a SQL dump from prod system). And used the a Symfony Command:

https://symfony.com/doc/current/console.html

To read all articles and create via the document manager the Sulu Articles.

A short snippet can be found here:

Data should be loaded over a \Generator method: https://gist.github.com/alexander-schranz/e526e8cce7755220045132034bbe5687#file-documentmanagerimportcommand-php-L16

And then the document is created or updated: https://gist.github.com/alexander-schranz/e526e8cce775522004513…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by brachycera
Comment options

You must be logged in to vote
6 replies
@brachycera
Comment options

@alexander-schranz
Comment options

@brachycera
Comment options

@brachycera
Comment options

@alexander-schranz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants