I'm trying to add the ability to insert an image into the background of a div. I have my CSS:
-----------
<style type="text/css">
.mainBackground {
background: #000 url('$BackgroundImage') no-repeat left top;
}
</style>
-----------
And added the proper tab into the php page:
-----------
$fields->addFieldToTab("Root.Content.Images", new ImageUploadField('BackgroundImage', 'Background Image'));
-----------
Everything functions as expected EXCEPT, it adds in the '<img src' tag (as it should). Is there a way to have the same functionality, only JUST insert the actual image path WITHOUT the 'img src' tag or the 'alt' tag?
Thanks!