How to change the logo of Shopware in the login page of admin from plugin config, in Shopware 6?

How to change the logo of Shopware in the login page of admin from plugin config, in Shopware 6?

my best guess is replacing the block {% block sw_login_badge %} of the twig component

vendor/shopware/platform/src/Administration/Resources/app/administration/src/module/sw-login/page/index/sw-login.html.twig

you will need to rebuild the folder structure for this file inside your plugin root and copy the twig file, make your adjustments inside your own copy of the twig file

 

beware: copying the whole twig is not best practice, i just didn’t have the time yet to look into properly importing the twig file and only adjusting the blocks i need. if u import the whole file other plugins working with the same original twig file may break or your new plugin wont work to begin with

 

for a working example where this technique has been used to hide product prices while not bearing the correct customer group look at

https://github.com/ufcyg/SynlabHideProductPrices/

 

 

to change the picture in the config you would need to adjust your configuration file with following

 

\component name=„sw-entity-single-select“\

\name\selectedMediaFile/name\

\entity\media/entity\

\label\Choose a previously uploaded media file/label\

/component\

 

you must replace the \ with „>“ or "