feat(main): Draggable blocks
This commit is contained in:
@@ -68,3 +68,13 @@ services:
|
||||
- '@websmid.customhtml.grid.data.factory.customhtmlblock_data_factory'
|
||||
- '@prestashop.core.grid.filter.form_factory'
|
||||
- '@prestashop.core.hook.dispatcher'
|
||||
|
||||
websmid.customhtml.grid.position.customhtmlblock_position_definition:
|
||||
public: true
|
||||
class: 'PrestaShop\PrestaShop\Core\Grid\Position\PositionDefinition'
|
||||
arguments:
|
||||
- 'ws_customhtml'
|
||||
- 'id_ws_customhtml'
|
||||
- 'ordering'
|
||||
- 'id_ws_customhtml_group'
|
||||
- 0
|
||||
|
||||
@@ -71,3 +71,9 @@ customhtmlblock_delete:
|
||||
methods: [DELETE, GET, POST]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlBlockController::deleteAction'
|
||||
|
||||
customhtmlblock_update_position:
|
||||
path: ws_customhtml/block/{idGroup}/update-position
|
||||
methods: [POST]
|
||||
defaults:
|
||||
_controller: 'Websmid\CustomHtml\Controller\CustomHtmlBlockController::updatePositionAction'
|
||||
|
||||
Reference in New Issue
Block a user