Replacement image for login page cant be found

1
Hey all, For the time being we are using the default login page by Mendix. However, I was hoping to replace the Mendix Logo and Work More picture with our own logo and more fitting picture. I tried overwriting the css call for loginpage-image with a URL to my own picture. I've added it to the resources folder in the root of the project (same place as the work-more picture) and overwritten the css with  background: url("/resources/hh_63761687.jpg"); Also tried some other variations, but every option gets me a 404 - file not found for file: resources/hh_63761687.jpg Whats the trick to getting Mendix to get my picture in the deployment?
asked
3 answers
7

Dear Louis,

You can try the following:

Create a new ‘public/resources’ folder in the concerning module of the themesource-folder and place the image in there. This should make it available for deployment and worked for me.

Cheers,
Mark

answered
1

Hi LouisI

I've changed the following lines in the login.html
<div class="loginpage">
      <div class="loginpage-left">
        <div class="loginpage-image"></div>
<div class="loginpage">
      <div class="loginpage-left">
        <div class="loginpage-image"></div>

and the following class was added in my css:
.loginpage-image {
 background-repeat: no-repeat;
 background: left / cover no-repeat url("../../../img/yourbackgroundimage.jpg");
 position: relative;
 height: 50%;
 top: 25%;

answered
0

I presume you mean the resources folder in the theme folder?

answered