on 09-28-2018 1:20 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
com.hybris.cockpitng.composer.LoginFormComposer
how to customize LoginFormComposer ?
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.