sulu / sulu-standard

This repository is not longer the recommended way to start a sulu project. Use:
https://github.com/sulu/skeleton
MIT License
614 stars 106 forks source link

sulu logo #615

Open Doum-Super opened 8 years ago

Doum-Super commented 8 years ago

Hello, how can i modify sulu logo in admin and browser link ?

danrot commented 8 years ago

There is a favicon placed in the web folder, I guess that's what you mean by browser link.

And I am afraid to tell you, that it is currently not possible to modifiy the sulu logo in the admin...

stefann-sasori commented 8 years ago

@Doum-Super Maybe this could help http://blog.sulu.io/how-to-develop-a-bundle-in-the-sulu-admin-2 ;

As sulu logo is set in admin via css; you could follow the above link and add your own css to the admin (via a simple admin bundle) that would overwrite the logo image url.

Something like

// file: Resources/public/js/main.js
require.config({
    paths: {
//        examplenews: '../../examplenews/js',
        examplenewscss: '../../examplenews/css'
    }
});

And then in examplenews/css/style.css

.logo{
    background-img: url('path/to/your/logo.png') !important;
}

However I don't know if this is ok with Sulu philosophy. It looks hacky. @danrot could give his view.

danrot commented 8 years ago

@stefann-sasori Yeah, that solution would probably work, but it is indeed quite hacky, and not what this mechanism is thought for... We would have to introduce a configuration to set the path to the logo.