cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Override backoffice login page

Former Member
1,934

Hello experts!

If somebody had experience in overriding Backoffice login page, please share your experience. I'd really appreciate your help.

"Extending Backoffice Login Page" described on help.hybris doesn't suit for us as we need to add some js and custom login link to the page.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

Hi, Dmytro. You should: 1. Copy login.zul from backoffice-core-6.7.0.1-RC1.jar (folder lib, backoffice extension) to your custom backoffice extension folder resourse
2. add new ant task into buildcallbacks.xml your custom extension

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <project name="commonbackoffice_buildcallbacks">
     com.hybris.cockpitng.composer.DefaultLoginInfoRenderer
     <macrodef name="commonbackoffice_before_build">
         <sequential>
             <register_sass_extension extensionname="commonbackoffice"/>
             <register_sass_extension extensionname="commonbackoffice" resources="resources" destination=""/>        
         <jar destfile="${ext.backoffice.path}/web/webroot/WEB-INF/lib/backoffice-core-6.7.0.1-RC1.jar" update="yes">
                 <zipfileset dir="${ext.commonbackoffice.path}/resources"
                             includes="login.zul"
                             fullpath="cockpitng/login.zul"/>
             </jar>
         </sequential>
     </macrodef>
 </project>


Custom login.zul will override login.zul into jar when you run ant all

Note! You always can customize style, logo, add SSO link etc https://help.hybris.com/6.0.0/hcd/8bdb6cdd86691014b68ecffbbdd73817.html

former_member710026
Discoverer
com.hybris.cockpitng.composer.LoginFormComposer

how to customize LoginFormComposer ?

pavan_joshi1
Participant
0 Likes

Hello,
Even I am stuck at Login Composer. How to customize this login composer ?