Skip to main content

Use System Configurator from css files

Goal: Technical

Developer: Nicolas Micoud

Feature Ticket: IDEMPIERE-6495

Sponsor: TGI

Description:

Objective of the ticket is to load dynamically some resources such as a background image for the login page.

To make it work, the login.css.dsp file must start with


<%@ taglib uri="http://www.idempiere.org/dsp/web/util" prefix="u" %>

in order to be able to use the new function added into idempiere-util.dsp.tld ; and then you can change the content of .login-window .z-window-content from your login.css.dsp file to something like


.login-window .z-window-content {

background-image: url(../images/${u:sysConfig("LOGIN_BACKGROUND_IMG", "login_tgi.png")}) !important; background-repeat: no-repeat; background-position: center;

}

You also need to create a System Configurator key to store the name of the image.


Source: Wiki