# Create a Custom Shopping World Element with Custom Backend Ext JS Template Window

**URL:** https://forum.shopware.com/t/create-a-custom-shopping-world-element-with-custom-backend-ext-js-template-window/53569
**Category:** International (English Only)
**Created:** [19. Juni 2018 um 08:15 UTC](https://forum.shopware.com/t/create-a-custom-shopping-world-element-with-custom-backend-ext-js-template-window/53569 "2018-06-19T08:15:38Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)
#### Post date: [25. Juni 2018 um 15:12 UTC](https://forum.shopware.com/t/create-a-custom-shopping-world-element-with-custom-backend-ext-js-template-window/53569/9 "2018-06-25T15:12:41Z")

</div>

> [@davit\_sargsyan schrieb:](https://forum.shopware.com/profile/29200/davit_sargsyan "davit\_sargsyan")
> 
> 1. How to perform CRUD operations on my entries before passing them to DB, i.e. how to change one of the values with php ?

I guess you’re using the Shopware backend components. So your backend controller inherits from Shopware\_Controllers\_Backend\_Application. So just have a look the the parent class. There’s a [save](https://github.com/shopware/shopware/blob/5.4/engine/Shopware/Controllers/Backend/Application.php#L395)/delete/getList/… function. So just do:

```
/* ... inside your backend controller ... */
public function save($data)
{
    // manipulate $data here
    return parent::save($data);
}
/*...*/

```

[https://github.com/shopware/shopware/blob/5.4/engine/Shopware/Controllers/Backend/Application.php#L395&nbsp](https://github.com/shopware/shopware/blob/5.4/engine/Shopware/Controllers/Backend/Application.php#L395&nbsp);

> [@davit\_sargsyan schrieb:](https://forum.shopware.com/profile/29200/davit_sargsyan "davit\_sargsyan")
> 
> 1. How to create a multi-item selector in my shopping world element with my entries? Should I use the&nbsp;pushItemToElements method?

You need some further knowledge about ExtJS here. I know it’s difficult but I won’t help if you don’t learn it. You need to understand the [MVC pattern of ExtJS](http://docs.sencha.com/ehttp://docs.sencha.com/extjs/4.2.4/extjs-build/docs/index.html#!/api/Ext.grid.Panelxtjs/4.2.4/extjs-build/docs/index.html). This doesn’t have to be related with Shopware. Just google for some tutorials (but remember that Shopware use’s ExtJS version 4.2.). If you understood the principle of models, stores and grids in ExtJS, it might be helpful to use the grid/search component from Shopware: [https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/base/attribute/field/Shopware.form.field.Grid.js](https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/base/attribute/field/Shopware.form.field.Grid.js)  
As I said, you might not get a finalized working solution here. ![Wink](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/wink.png "Wink")  
But of course we’re here to help you on your way there!

Best regards

---

_[View the full topic](https://forum.shopware.com/t/create-a-custom-shopping-world-element-with-custom-backend-ext-js-template-window/53569)._
