context-root value in background-image url 's template pages

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
ednil
Posts: 3
Joined: 21 Sep 2018, 04:29

02 Jun 2020, 18:31

Hi!!!
My app do not show the background images from the template pages, like login and exception's. After checked the css, i figure out that root project is static, with value "siberia". Like this:

.login-body {
background-image: url(/siberia/javax.faces.resource/images/exceptions/mask-login.png.xhtml?ln=siberia-layout); }

I'm not a professional developer. Maybe i'm saying something incorrect. :D

Should change for this?
#{resource['siberia-layout:images/landing/exceptions/mask-login.png.']}
or whatelse.

Tks.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Jun 2020, 09:58

Hi,
I'm not a professional developer. Maybe i'm saying something incorrect.
- No problem, we are always happy to help.
Should change for this?
#{resource['siberia-layout:images/landing/exceptions/mask-login.png.']}
- If you changed folder structure or name under webapp/resources/*, yes.
siberia-layout -> library briefly a folder name under resources folder.

Exp;
webapp/resources/siberia-layout/images/landing/extensions/mask-login.png -> #{resource['siberia-layout:images/landing/exceptions/mask-login.png.']}
webapp/resources/A/B/C.png -> #{resource['A:B/C.png.']}

Also, please see; https://stackoverflow.com/questions/692 ... -image-url

Best Regards,

Post Reply

Return to “Siberia - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests