ioleo
ioleo

Reputation: 4817

How to add list of SonataUserBundle Users to admin dashboard (SonataAdminBundle)?

How to add Users to admin dashboard?

My app:

I've followed the instructions in sonata-project.org and I get no errors, but my admin dashboard is empty! I would like to manage my Users and Groups.

I don't know if thats relevant but Sonata is added in kernel as:

new SonataUserBundle('FOSUserBundle')

How to add CRUD for User's and Groups to my admin dashboard?

If you want to see my config, just tell me which part. I did not post all my configs, becouse there are alot of lines of code and I wanted to keep this question clean.

Upvotes: 1

Views: 1953

Answers (2)

Helios
Helios

Reputation: 86

This config works well for me

    sonata_admin:
...
        dashboard:

...
            groups:
...    
                user:
                    label: Users management
                    items:
                        - sonata.user.admin.user
                        - sonata.user.admin.group

Upvotes: 2

ioleo
ioleo

Reputation: 4817

It seems the docs in many parts are outdated or with typo's.

removeing groups

sonata_admin:
    dashbpard:
        groups:
            default: ~

from config did the trick.

Upvotes: 1

Related Questions