All variants of the following (be it relative or absolute URL set) results in failure of background image setting through the interface-I know it says some syntax won't be accepted but is there any way to make this work?
background:url("http://basedomain.com/sites/default/themes/theme/graphics/graphic.png");
background-image:url("http://basedomain.com/sites/default/themes/theme/graphics/graphic.png");
background:url(http://basedomain.com/sites/default/themes/theme/graphics/graphic.png);
background-image:url(http://basedomain.com/sites/default/themes/theme/graphics/graphic.png);
background:url('http://basedomain.com/sites/default/themes/theme/graphics/graphic.png');
background-image:url('http://basedomain.com/sites/default/themes/theme/graphics/graphic.png');
Please advise, link to documentation that shows expected syntax or I recommend adding to known issues. Quick search on drupal.org resulted in no real solutions.
| Comment | File | Size | Author |
|---|---|---|---|
| background-image-panels-issue-screenshot.jpg | 48.64 KB | rayvan |
Comments
Comment #1
Letharion commentedI'm sorry, but I don't understand at all why this is in the Panels issue queue?
Comment #2
rayvan commentedBecause this is a support request to have the ability to post any valid CSS in the override text area. This would help in situations where a developer has multiple development server environments and just wants to get something fixed in production fast without a code push.
Comment #3
Letharion commentedI thought that your css itself was failing, and thought you needed to check your syntax. Sorry about that.
I'm not aware of a really easy way to do that from the UI no. The function ctools_css_filter_css_data() can be passed a custom list of allowed markup, but I see no way to do that from the UI. I think you would actually need to implement your own task-handler for that, likely inheriting from the current one.
You could also post a patch for allowing background-image, I don't see why it wouldn't be accepted, but there could of-course be a good reason for the current setup.
Comment #4
merlinofchaos commentedUnfortunately, background-image is restricted for security reasons. Allowing that CSS is considered exploitable, and thus we do not allow it in the UI.
Comment #5
rayvan commentedOk, thanks anyways.
Comment #6
victor.bexelius commentedHello,
If I want to edit the filter list and enable background-image along with other CSS-attributes: what file would I change?
Best regards
Victor