sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Top menu #817

Closed vazgen closed 12 years ago

vazgen commented 12 years ago

Hello,

There was a top menu where were all me admin links , after update of bundle I do not see it anymore. Has it been removed?

sonata_admin: security: handler: sonata.admin.security.handler.role

role security information

    information:
        EDIT: EDIT
        LIST: LIST
        CREATE: CREATE
        VIEW: VIEW
        DELETE: DELETE
        OPERATOR: OPERATOR
        MASTER: MASTER
title:      BetsGrabber Project
title_logo: /bundles/bgmain/images/logo-small.png 
templates:
    # default global templates
    layout:  SonataAdminBundle::standard_layout.html.twig
    ajax:    SonataAdminBundle::ajax_layout.html.twig
    dashboard: SonataAdminBundle:Core:dashboard.html.twig
    # default actions templates, should extend a global templates
    list:    SonataAdminBundle:CRUD:list.html.twig
    show:    SonataAdminBundle:CRUD:show.html.twig
    edit:    SonataAdminBundle:CRUD:edit.html.twig

dashboard:
    blocks:
        # display a dashboard block
        - { position: left, type: sonata.admin.block.admin_list }

        # Customize this part to add new block configuration
        - { position: right, type: sonata.block.service.text, settings: { content: "<h2>Welcome to the Sonata Admin</h2> <p>This is a <code>sonata.block.service.text</code> from the Block Bundle, you can create and add new block in these area by configuring the <code>sonata_admin</code> section.</p> <br /> For instance, here a RSS feed parser (<code>sonata.block.service.rss</code>):"} }
        #- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }}

Thanks

pulzarraider commented 12 years ago

No, it wasn't removed, but the behavior has changed (see b2f361dbbebba6983305620c4c301e058f12a314) and it seems, that this commit should be reverted or fixed, as it cause some other bug #813, too

RobMasters commented 12 years ago

What's the hold up with this? I can verify that it works as expected. Can this be merged into the 2.0 branch asap please? @rande

sivinnguyen commented 11 years ago

Please show me how to make top menu appear. Thank you.

kingcrunch commented 11 years ago

@sivinnguyen

Was looking for the same. The answer is somewhere mentioned in the CHANGELOG.md

https://github.com/sonata-project/SonataAdminBundle/blob/master/CHANGELOG.md#2012-06-05

  • [BC BREAK] Fix bug introduces by 09334d81, now an admin must have the role ROLE_SONATA_ADMIN to see the top bar navigation

If you ask me this doesn't make sense (or is incomplete :wink: ) because as an ROLE_ADMIN I can see the whole dashboard, but not the menu bar seems inconsistent.