comsa/sulu-feature-list-bundle
Composer 安装命令:
composer require comsa/sulu-feature-list-bundle
包简介
Adds a feature list content type
README 文档
README
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require comsa/sulu-feature-list-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php
return [
// ...
Comsa\SuluFeatureListBundle::class => ['all' => true],
];
Step 3: Add JS to webpack build process
In assets/admin/package.json add the feature list dependencies like so:
{
// ...
"dependencies": {
// ...
"comsa-sulu-feature-list-bundle": "file:../../vendor/comsa/sulu-feature-list-bundle/Resources/js"
}
}
Install these assets using npm install
Step 4: Add Feature list bundle package to admin panel
In assets/admin/index.js add the following above startAdmin():
// ...
// Implement custom extensions here
import 'comsa-sulu-feature-list-bundle';
// ...
Usage
You can now use this is a normal content type:
<property name="features" type="feature_list">
<meta>
<title lang="en">Feature list</title>
</meta>
</property>
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-10