eikona-media / akeneo5-0-tessa-connector
将 TESSA 连接到 Akeneo 的扩展
1.4.1
2022-04-07 12:13 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- akeneo/pim-community-dev: ~5.0.0
README
Akeneo 5.0 的 TESSA 连接器
使用此连接器包,您可以无缝地将 Akeneo 与数字资产管理解决方案 "TESSA" (https://www.tessa-dam.com) 连接起来。这为您提供了一个专业且完全集成的 DAM 解决方案,用于 Akeneo,以便在所有渠道中集中存储、管理和使用您产品的所有附加文件(例如图像、视频、文档等)。
更多信息请访问我们的 网站。
需求
重要!请确保您的 Akeneo API 正在运行。TESSA 需要与您的 Akeneo 建立API连接。在某些情况下,Apache 配置错误,请参阅 https://api.akeneo.com/documentation/troubleshooting.html#apache-strip-the-authentication-header。
安装
- 使用 composer 安装该包
composer require eikona-media/akeneo5-0-tessa-connector
- 然后,在 config/routes/routes.yml 的末尾添加以下行
tessa_media: resource: "@EikonaTessaConnectorBundle/Resources/config/routing.yml"
- 在 config/bundles.php 文件中启用该包
return [ // ... Eikona\Tessa\ConnectorBundle\EikonaTessaConnectorBundle::class => ['all' => true], ];
- 仅限 EE:在 config/bundles.php 文件中启用企业包
return [ // ... Eikona\Tessa\EEConnectorBundle\EikonaTessaEEConnectorBundle::class => ['all' => true], ];
- 在项目根目录中运行以下命令
php bin/console cache:clear --env=prod --no-warmup php bin/console cache:warmup --env=prod php bin/console pim:installer:dump-require-paths --env=prod php bin/console pim:installer:assets --env=prod yarn run webpack yarn run less yarn run update-extensions
- 更新您的数据库模式
php bin/console doctrine:schema:update --dump-sql # Show changes php bin/console doctrine:schema:update --force # Update database schema
-
在 Akeneo 系统设置中配置 Tessa 连接器。
-
(可选)创建一个 cronjob 以在后台与 TESSA 同步数据
如果您在系统设置中使用“后台同步”选项,则此步骤是必要的
php bin/console eikona_media:tessa:notification_queue:execute --env=prod
建议每5分钟运行一次(*/5 * * * *
)。如果同时启动两次相同的命令,则第二次命令将以通知结束。
如何与参考实体一起使用
- 在 config/routes/routes.yml 的末尾添加以下行
tessa_api_reference_data: resource: "@EikonaTessaReferenceDataAttributeBundle/Resources/config/routing.yml"
- 在 config/bundles.php 文件中启用 ReferenceDataAttributeBundle
return [ // ... Eikona\Tessa\ConnectorBundle\EikonaTessaConnectorBundle::class => ['all' => true], // Already registered Eikona\Tessa\ReferenceDataAttributeBundle\EikonaTessaReferenceDataAttributeBundle::class => ['all' => true], // New ];
- 当您添加新的参考实体属性时,在类型下拉菜单中选择 TESSA