I want to load custom blocks on the dashboard but when I none of them seems 
to be found when I try to position them on the dashboard.


Here's my config.yml


sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.user.block.menu:    # used to display the menu in profile 
pages
        sonata.user.block.account: # used to display menu option (login 
option)
        app.admin.block.topnumbers:
            contexts:   [admin]

sonata_admin:
    dashboard:
        blocks:
            -
                position: top
                type:   app.admin.block.topnumbers


The service app.admin.block.topnumbers is defined and can be found in the 
appDevDebugProjectContainer. If I change the type under position to the 
standard sonata services, I still get the error shown below


An exception has been thrown during the rendering of a template ("The block 
type "app.admin.block.topnumbers" does not exist") in 
SonataAdminBundle:Core:dashboard.html.twig at line 60.

Any kind of help will be appreciated

-- 
You received this message because you are subscribed to the Google Groups 
"sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to