Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can I add inline styles with this module?
I need to rewrite the output of a field in a view with the following, so an image that's a view's result can be added as an inline image:
<div class="image-div" style="background-image:url('[field_image_fid]'); width: 250px;"></div>
Can this be done? By default views strips out the style tag. I read that using this module was a work around, but it seems to do the same thing.
Thanks
Comments
Comment #1
djh007 CreditAttribution: djh007 commentedsubscribing
Comment #2
roblav CreditAttribution: roblav commentedI'd also like to know if this is possible.
Comment #3
Ryan258 CreditAttribution: Ryan258 commentedI'm here from http://drupal.org/node/853880 and this doesn't seem to work.
Trying to make it so editors can update the background images (repeating) on their own.
They add an image to a piece of node content, with a token of the image path rewritten as in the url('[token]').
It all seemed too easy until I hit this snag with style attribs being stripped.