comsa/sulu-page-export
允许在Sulu管理中导出页面
2.0.0
2021-09-06 14:09 UTC
Requires
- php: ^8.0
- symfony/config: ^4.3 || ^5.0
- symfony/dependency-injection: ^4.3 || ^5.0
- symfony/http-foundation: ^4.3 || ^5.0
- symfony/http-kernel: ^4.3 || ^5.0
This package is auto-updated.
Last update: 2024-09-06 19:54:08 UTC
README
请确保已全局安装Composer,具体安装方法请参阅Composer文档中的安装章节。
步骤 1: 下载Bundle
打开命令行,进入项目目录,并执行以下命令以下载此bundle的最新稳定版本
$ composer require comsa/sulu-page-export dev-master
步骤 2: 启用Bundle
然后,通过将其添加到项目config/bundles.php
文件中注册的bundle列表来启用此bundle
// config/bundles.php
return [
// ...
Comsa\SuluPageExport\SuluPageExportBundle::class => ['all' => true],
];
步骤 3: 为bundle激活路由
#config/routes_admin.yaml
comsa_sulu_page_export:
type: rest
prefix: /admin/api
resource: '@SuluPageExportBundle/Resources/config/routes.yaml'
步骤 4: 将JS添加到webpack构建过程
在assets/admin/package.json
中添加如下页面导出依赖项
{
// ...
"dependencies": {
// ...
"sulu-page-export-bundle": "file:../../vendor/comsa/sulu-page-export/Resources/js"
}
}
使用npm install
安装这些资源
步骤 5: 将页面导出bundle包添加到管理面板
在assets/admin/index.js
中,在startAdmin()
之前添加以下内容
// ...
// Implement custom extensions here
import 'sulu-page-export-bundle';
// ...