studio1/batch-operation
最新稳定版本:v2.0.1
Composer 安装命令:
composer require studio1/batch-operation
包简介
This bundle extends Pimcore core functionality by adding buttons in asset list view, e.g. to add / replace tags or move selected assets.
README 文档
README
This bundle extends Pimcore core functionality by adding buttons in asset list view, e.g. to add / replace tags or move selected assets.
🛠️ Installation
- Download the bundle using composer:
composer require studio1/batch-operation
- Enable the bundle by adding it to
config/bundles.php:<?php // ... use Studio1\BatchOperationBundle\BatchOperationBundle; return [ # Pimcore Bundles // ... # Studio1 Bundles BatchOperationBundle::class => ['all' => true], // ... ];
📦 Dependencies
This Bundle requires a Pimcore installation and is not stand-alone.
Please see require section of composer.json for dependency details.
THIS PACKAGE NEEDS CHANGES IN PIMCORE-CORE FILES. THOSE ARE APPLIED USING AN INCLUDED PATCH FILE.
🧩 Add buttons to asset list view
Default behaviour
By default, the bundle adds two buttons to the asset list view (even if no configuration in yaml file is done):
- Add Tags - opens a modal to add tags to selected assets
- Move - opens a modal to move selected assets to another location
Example configuration
If other (or less) buttons are needed, you need update the configuration in your project accordingly.
batch_operation: additional_asset_list_buttons: - getS1BatchOperationAssetButtonForTag - getS1BatchOperationAssetButtonForMove
How to add additional buttons to asset list view
- Add new entry to
yamlconfiguration of your project. - Add new JS file containing the button logic to your project, see files in the following directory as example src/Resources/public/js/pimcore/button-function/asset/.
- Ensure new JS file is loaded properly in your project. E.g. by adding it to
getJsPaths()method of your project.
🗑️ Uninstall
- Remove the bundle from
config/bundles.php(see Installation): - Remove the bundle from
composer.json:composer remove studio1/batch-operation
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-02-20


