Sonata – miscellaneous configuration

Change Sonata Admin bottom sidebar link

To change the Sonata Admin bottom sidebar link, you need to:
Create the file src/Acme/AdminBundle/standard_layout.html.twig
Add :

{% extends 'SonataAdminBundle::standard_layout.html.twig' %}

{% block side_bar_after_nav %}
    your custom link here
{% endblock %}

Then add in app/config/config.yml:

sonata_admin:                                                                    
    // ...
    templates:                                                                  
         layout:                         CanalAdminBundle::standard_layout.html.twig

Sonata Admin Remember me

To make remember me last, edit app/config/security.yml, and add:

security:
    // ...
    firewalls:
        // ...
        admin:
            // ...
            # remember me connection
            remember_me:
                key:      "%secret%"
                lifetime: 31536000
                path:     /
                domain:   ~
        main:
            // ...
            # remember me connection
            remember_me:
                key:      "%secret%"
                lifetime: 31536000
                path:     /
                domain:   ~

Raphaël has written 45 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>