Page 1 of 1

Replace default broadleaf image | In the Admin application

Posted: Mon Feb 06, 2012 2:49 pm
by om.singh
I have extended the broadleaf application to create my own custom commerce application. Is there a way to replace the broadleaf image in the admin login screen.

Regards
Om

Re: Replace default broadleaf image | In the Admin application

Posted: Thu Feb 09, 2012 10:14 pm
by bpolster
Om,

At this time, the logo is not a configurable item. To replace the Broadleaf Image, you would need to checkout the framework source from GitHub.

The method MasterView.buildLogo() is responsible for drawing the logo. Currently, this method contains the following code:

Code: Select all

        ImgButton logo = new ImgButton();
        logo.setSrc(GWT.getModuleBaseURL() + "admin/images/blc_logo_white.png");

        logo.setWidth(149);
        logo.setHeight(71);
        logo.setShowRollOver(false);
        logo.setShowDownIcon(false);
        logo.setShowDown(false);
        return logo;


In addition to the logo, Broadleaf has a splash screen that displays a broadleaf logo. The code that drives this is in

Code: Select all

BLCMain.java
.

The information in this post is valid as of Java 1.6.0. These classes are internal to core admin functionality and are likely to change overtime.

Thanks,