Page 1 of 1

How can I use Appery.getImagePath in CSS?

Posted: Sat Jan 11, 2014 1:48 am
by Patrick Kelly

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


How can I use Appery.getImagePath in CSS?

Posted: Sat Jan 11, 2014 2:02 am
by Igor