default-value / akeneo-inline-edit-bundle
Add ability to enable inline edit for Akeneo PIM product grid
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 4
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2021-05-29 01:23:25 UTC
README
AkeneoInlineEditBundle
AkeneoInlineEditBundle provides ability to edit product attributes from Products Grid.
Installation
Step 1: Install bundle with composer
php composer.phar require default-value/akeneo-inline-edit-bundle 2.0
Step 2: Enable the bundle
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new DefaultValue\Bundle\AkeneoInlineEditBundle\DefaultValueAkeneoInlineEditBundle(), ); }
Step 3: Add bundle routing to app/config/routing.yml
default_value_akeneo_inline_edit: resource: "@DefaultValueAkeneoInlineEditBundle/Resources/config/routing.yml"
Configuration
Datagrid
Set following properties in datagrid
configuration:
- Set
rowAction
to false (to disable default row Action):
actions: edit: type: navigate label: Label icon: icon-class link: edit_link rowAction: false
- Add to
properties
configuration following options:
update_attribute_value: type: url route: default_value_inline_edit_update_attribute params: - id - dataLocale - scopeCode
- Set column property
editable
to true:
columns: name: label: Name type: product_value_field selector: product_value_base editable: true
Note: Editable columns should have the same name as attribute code. E.g. product has attribute name
and no attribute title
which comes with default grid configuration.
ACL
Action for updating attribute value has defined AclAncestor - default_value_inline_edit_update_value
.
So, you are able to configure the roles that have permission to edit product from Products Grid.
More details about ACL and permissions configuration you can find in Akeneo documentation.
Limitation
Bundle supports following types of attributes:
- Number
- Text Area
- Text
- Price (only for USD currency)