Image references in CSS broken

Permalink Browser Info Environment
Hi,

I almost got you add-on to work, only the image references in the css are broken by the add-on.

Where in the css it says:

background: transparent url(images/tv.png) no-repeat top left;


The add-on turns this into:
http://localhost/files/cache/css/bp/css/http://localhost/themes/bp/images/tv.png


Is there something I'm doing wrong?

Thanks!

Pascal

Type: Discussion
Status: New
plindelauf
View Replies:
plindelauf replied on at Permalink Reply
plindelauf
Found my own mistake! I was so stubborn as to use:

addCSS($this->getStyleSheet('css/form.css'))


as my css reference instead of the documented:

addCSS($this->getThemePath().'/css/form.css')


The only small issue that remains is that I'd like to use the following directory structure:

home
- css
- images
- javascript


But then when referring to the images folder from css style rules, we need to either need to be able to use a reference relative to the home folder. The getStyleSheet function resolves this reference correctly, but the XClydes function doesn't. The solution for me was to place the images folder within the css folder.

Is there a better solution for this?
juliankauai replied on at Permalink Reply
juliankauai
this looks useful. it doesn't seem supported.

is it recommended to use?
juliankauai replied on at Permalink Reply
juliankauai
this looks useful. it doesn't seem supported.

is it recommended to use?
plindelauf replied on at Permalink Reply
plindelauf
It works great on the website I use it on and I would certainly use it again for performance optimisation.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.