PHPackages                             paysera/fork-pix-digital-pix-sortable-behavior-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. paysera/fork-pix-digital-pix-sortable-behavior-bundle

AbandonedArchivedSymfony-bundle[Admin Panels](/categories/admin)

paysera/fork-pix-digital-pix-sortable-behavior-bundle
=====================================================

Provides a way to sort your admin listing

v1.4.2(8y ago)07.3k[1 PRs](https://github.com/paysera/fork-pix-digital-pix-sortable-behavior-bundle/pulls)MITPHPPHP &gt;=5.3.0

Since Nov 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/paysera/fork-pix-digital-pix-sortable-behavior-bundle)[ Packagist](https://packagist.org/packages/paysera/fork-pix-digital-pix-sortable-behavior-bundle)[ Docs](https://github.com/pix-digital/pixSortableBehaviorBundle)[ RSS](/packages/paysera-fork-pix-digital-pix-sortable-behavior-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (13)Used By (0)

pixSortableBehaviorBundle
=========================

[](#pixsortablebehaviorbundle)

Offers a sortable feature for your Symfony2 admin listing

### SonataAdminBundle implementation

[](#sonataadminbundle-implementation)

The SonataAdminBundle provides a cookbook article here :

[https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/doc/cookbook/recipe\_sortable\_listing.rst](https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/doc/cookbook/recipe_sortable_listing.rst)

### Configuration

[](#configuration)

By default, this extension works with Doctrine ORM, but you can choose to use Doctrine MongoDB by defining the driver configuration :

```
# app/config/config.yml
pix_sortable_behavior:
    db_driver: mongodb # default value : orm
    position_field:
        default: sort #default value : position
        entities:
            AppBundle/Entity/Foobar: order
            AppBundle/Entity/Baz: rang
    sortable_groups:
        entities:
            AppBundle/Entity/Baz: [ group ]

```

#### Use a draggable list instead of up/down buttons

[](#use-a-draggable-list-instead-of-updown-buttons)

In order to use a draggable list instead of up/down buttons, change the template in the `move` action to `AppBundle:Admin:_sort_drag_drop.html.twig`.

```
