thecadien/sulu-import-export-bundle

Import/Export Bundle for Sulu 2 CMS

2.0.0 2023-03-01 09:36 UTC

This package is auto-updated.

Last update: 2024-12-02 10:02:14 UTC


README

  • PHP >= 7.3
  • Sulu 2.*
  • Symfony 4.4 / 5.* / 6

Install the bundle

Execute the following composer command to add the bundle to the dependencies of your project:

composer require thecadien/sulu-import-export-bundle

Enable the bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

return [
    /* ... */
    TheCadien\Bundle\SuluImportExportBundle\SuluImportExportBundle::class => ['all' => true],
];

Configure the bundle

If the doctrine database connection used by Sulu is not the 'default' DBAL connection you have to specify the connection name in the bundle's configuration.

# config/packages/sulu_import_export.yaml

sulu_import_export:
    dbal_connection: default

Configure the import and export paths in your .env in the following way.

MEDIA_PATH='var/uploads/media'

IMPORT_DIR='var/import/'
EXPORT_DIR='var/export/'

UPGRADE

1.1.1

Since version 1.1.1 it should be possible to change the path of the export and import easily. For this the ENV must be extended by the following variables. To map the same function as in the 1.0.0 version it is sufficient to leave the variables empty.

IMPORT_DIR=
EXPORT_DIR=