Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2011 at 18:35 UTC
Updated:
21 Feb 2013 at 23:32 UTC
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 commentedsubscribing
Comment #2
roblav commentedI'd also like to know if this is possible.
Comment #3
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.