Patrick Kelly
Posts: 0
Joined: Wed Nov 20, 2013 6:00 am

How can I use Appery.getImagePath in CSS?

I am trying to use an image from my media manager as a background for a cell. However, when I use the code offered in the API, I get no image. I have tried this same code with a static URL from a google image search and it works, however, the getImagePath function doesn't seem to work. It currently looks like this:

precode
[name=hPoleCell] {
background-image: url(Appery.getImagePath('hPole.png'));
}
/code/pre

For the record, I used an alert to show me what that code brought up and only got part of a URL: files/views/assets/image/hPole.png

Return to “Issues”