# Checkbox im Kategorie-Backend integrieren

**URL:** https://forum.shopware.com/t/checkbox-im-kategorie-backend-integrieren/29531
**Category:** Programmierung
**Created:** [11. August 2015 um 14:40 UTC](https://forum.shopware.com/t/checkbox-im-kategorie-backend-integrieren/29531 "2015-08-11T14:40:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![janico](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@janico](https://forum.shopware.com/u/janico)
#### Post date: [11. August 2015 um 14:40 UTC](https://forum.shopware.com/t/checkbox-im-kategorie-backend-integrieren/29531/1 "2015-08-11T14:40:37Z")

</div>

Hallo zusammen Ich würde gerne für mich ein Plugin erstellen. Im Backend unter Kategorien möchte ich gerne eine Checkbox. Wenn diese Checkbox aktiviert ist, dann wird der graue Sortierungsbalk (vor dem Productlisting) ausgeblendet. Leider erscheint keine Checkbox im Backend auf der Kategorienseite… Irgendwo stehe ich auf der Bootstrap.php auf dem Schlauch: [code]\<?php /\*\*

- 
- 

\*/

class Shopware\_Plugins\_Frontend\_TradebyNoSortingListing\_Bootstrap extends Shopware\_Components\_Plugin\_Bootstrap

{

```
/**

 * Returns the plugin label which displayed in the plugin information and

 * in the plugin manager.

 * @return string

 */

public function getLabel() {

    return 'Keine Sortierung';

}

/**

 * Returns the plugin information

 * @return array

 */

public function getInfo() {

    return array(

        'label' => $this-\>getLabel(), 'version' =\> $this-\>getVersion(), 'supplier' =\> 'Cyril', 'link' =\> 'https://www.tradeby.ch', 'autor' =\> 'Cyril', 'copyright' =\> '© 2015', 'source' =\> 'Community', 'license' =\> '', 'support' =\> '' ); } /\*\* \* Returns the plugin version. \* \* @return string \*/ public function getVersion() { return '1.0.0'; } // Set the new secureUninstall capability public function getCapabilities() { return array( 'install' =\> true, 'enable' =\> true, 'update' =\> true ); } // Remove all data public function uninstall() { return true; } } [/code] Dann unter model die detail.js: [code]//{block name="backend/category/model/attribute/fields" append} { name: 'TradebyNoSortingListing', type: 'boolean', defaultValue: false }, //{/block} [/code] und noch die settings.js : [code]//{namespace name="backend/plugins/cnet\_seo\_categorycontent/main"} //{block name="backend/category/view/tabs/settings" append} Ext.define('Shopware.apps.Category.view.category.tabs.Settings.category\_description.Settings', { //--- override: 'Shopware.apps.Category.view.category.tabs.Settings', //--- getCmsSettings: function() { var me = this, fields = me.callParent(arguments); fields.add({ xtype : 'checkbox', name : 'attribute[TradebyNoSortingListing]', anchor : '95%', fieldLabel : 'Sichtbar im Brand Selector', inputValue : true, uncheckedValue : false }); return fields; } }); //{/block} [/code] Kann mir irgendjemand weiterhelfen? Gutes Tutorial? Oder einen Tipp geben? Vielen Dank und Gruss Cyril
```
