Fórumok
Why images are not load in custom portlet?
Mahendra Panchal, módosítva 9 év-val korábban
Why images are not load in custom portlet?
New Member Bejegyzések: 21 Csatlakozás dátuma: 2014.02.25. Legújabb bejegyzések
Hello All,
here is my portlet directory structure.
docroot/css
docroot/images
docroot/js
docroot/jsps
in this everything load and work fine. but i can not load any images which can be set in my custom css.
like:
.set-left-arrow{
background-image: url("../images/lfr-arrow.png") important;
}
i'm put lfr-arrow.png in images folder as u seen above. sturucture.
here is my portlet directory structure.
docroot/css
docroot/images
docroot/js
docroot/jsps
in this everything load and work fine. but i can not load any images which can be set in my custom css.
like:
.set-left-arrow{
background-image: url("../images/lfr-arrow.png") important;
}
i'm put lfr-arrow.png in images folder as u seen above. sturucture.
Suresh Nimmakayala, módosítva 9 év-val korábban
RE: Why images are not load in custom portlet?
Liferay Master Bejegyzések: 690 Csatlakozás dátuma: 2004.08.18. Legújabb bejegyzések
try
background: url(@theme_image_path@/lfr-arrow.png)
background: url(@theme_image_path@/lfr-arrow.png)
Olaf Kock, módosítva 9 év-val korábban
RE: Why images are not load in custom portlet?
Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
When the browser sees
it assumes that ../images/lfr-arrow.png is either relative to the whole page (e.g. /web/guest/home) or to an explicitly given base. You should be able to see in HTML which item is not found and adjust the image's path according to it.
.set-left-arrow{
background-image: url("../images/lfr-arrow.png") important;
}
it assumes that ../images/lfr-arrow.png is either relative to the whole page (e.g. /web/guest/home) or to an explicitly given base. You should be able to see in HTML which item is not found and adjust the image's path according to it.
Mohammad Danish, módosítva 9 év-val korábban
RE: Why images are not load in custom portlet?
Regular Member Bejegyzések: 187 Csatlakozás dátuma: 2012.03.05. Legújabb bejegyzések
You need to pass it like this
.set-left-arrow{
background-image: url("/YOUR_PORTLET_Project_name/images/lfr-arrow.png") important;
}
.set-left-arrow{
background-image: url("/YOUR_PORTLET_Project_name/images/lfr-arrow.png") important;
}
Nader Jafari, módosítva 9 év-val korábban
RE: Why images are not load in custom portlet?
Junior Member Bejegyzések: 84 Csatlakozás dátuma: 2011.08.24. Legújabb bejegyzések
your css file after deploy the portlet is in docroot/css/.sascache
try
.set-left-arrow{
background-image: url("../../images/lfr-arrow.png") important;
}
try
.set-left-arrow{
background-image: url("../../images/lfr-arrow.png") important;
}