Series 6: Extensions Chapter 7 of 10

Transferring content: moving articles to another website

Editing content
Applies to: Extension “Content transfer” As of Sulu 3.0

This only exists with the extension “Content transfer”. If it is missing from your administration, the extension is not installed.

In short

Check articles, Export package, on the target Import package, read the preview, import. Everything arrives as a draft. Pages are not part of the package: the page under which the address of an article lives must already exist on the target.

With Content transfer you move articles from one Sulu website to another, for example from a test website to the real one. The articles travel with images and languages in a single file. Before writing, the import shows what it creates, updates or skips. Version 1 transfers only articles, not pages.

The images show an example website. The menu Export/Import exists from version 1.1. In version 1.0 there were two separate buttons. The windows have stayed the same.

Helpful first: 1.5 Articles: news and blog posts

Step 1 of 6 The menu Export/Import

The toolbar of every article list has the menu Export/Import. It has two entries. Export package can only be chosen once you have checked articles. The number after it says how many there are. Import package can always be chosen.

Step 2 of 6 Export articles

In the article list, check one or more articles and choose Export/Import › Export package. The window asks three things:

  • Languages: which languages go along. All existing ones are preset.
  • Version: Published takes the published version, Current draft the draft.
  • Images: Include image files puts the images into the file. References only leaves them out and fits if they already exist on the target.

The window lists linked articles that you have not checked. With Export them too you add them. Then the browser downloads a file with the ending .sulu-transfer.zip.

Step 3 of 6 Import a package

On the target website, choose Export/Import › Import package. Drag the file into the dashed field or click it. Check takes you further. Nothing is written up to this point.

Step 4 of 6 Read the preview

For each article, the preview names a state and an action:

  • New: the article does not exist here. It is created.
  • Exists, unchanged: it is updated.
  • Changed here on …: someone changed it after the last import. It is skipped unless you choose “Update”.
  • Comes from this system: the package was exported here. Only “Create as copy” is possible.
  • Cannot be imported: the template or a permission is missing, or no language can be imported.

The preview also says how many images are already there, which categories and tags will be newly created and which links could not be matched. Below the table you choose the languages and the status. Everything as a draft is preset. Publishing happens afterwards on the target website.

Step 5 of 6 Read the report

After the import, a report lists every article with a link to open it, the images, new categories and tags, changed addresses and removed links. An article that fails is shown in red. The others are transferred anyway. Each article is written on its own; nothing of a failed one is left behind.

Step 6 of 6 Installing it in your project

The extension is called SuluContentTransferBundle. On Packagist it is at version 1.1.1 (as of October 22, 2026). It needs Sulu 3 on both websites.

  1. Install the package with the command below, enter the bundle in config/bundles.php and include the routes in config/routes_admin.yaml.
  2. Enter the JavaScript in assets/admin/package.json and assets/admin/app.js and rebuild the admin.
  3. Create the table ct_transfer_mapping, preferably with a migration. Afterwards sulu:media:init creates the media folder “Import”.
  4. Clear the caches and give the roles the permissions. The extension uses the existing permissions for articles and media.

Three things belong to operation. First, every system needs its own APP_SECRET or its own instance_id, even if the database was copied. Otherwise the target takes itself for the source and only offers “Create as copy”. Second, the code goes to the target first, because every article needs its template, and the content follows. Third, large packages belong in the console. The command sulu:content-transfer:import has the option --dry-run for looking without writing.

Everything else is in the README on GitHub. The folder docs describes the matching rules and the format of the file.

Installation
composer require manuxi/sulu-content-transfer-bundle
Look at a package in the console without writing
php bin/adminconsole sulu:content-transfer:import tutorials.sulu-transfer.zip --dry-run

More on this