Image paths in .LESS

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/6/2013 8:10:25 AM
Gravatar
Total Posts 216
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Image paths in .LESS

Hey Joe,

I've just begun trying to use LESS css with mojoPortal, and I've run into what appears to be a compilation error.

When I input an image path, normally it is relative to the skin root like so:

.element {
        background-image: url('images/myImage.png');
}

And it renders as:

.element {
        background-image: url("data/sites/[sitenumber]/skin/[skinname]/images/myImage.png");
}

But when I add that rule in a .LESS file, it renders without the "data/sites/[sitenumber]" stuff before the image name. This is an issue for me because I'm not usually sure what the site number is going to be for the user who ends up with the skin I build.

I've tested this on the bootstrap204less skin included with mojo and I have the same problem. If the background-image is declared in a .css file it renders properly, but not in a .less file.

Do you know what's causing this or how to fix it?

Thanks,
-Isaac
 

1/7/2013 4:30:20 PM
Gravatar
Total Posts 18439

Re: Image paths in .LESS

Hi Isaac,

Thanks for letting me know about that. It is fixed now in the source code repository so it will be fixed in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.