sachatrauwaen / OpenContent

Structured Content editing for DNN (Dotnetnuke)
46 stars 25 forks source link

Background-Image Path Incorrect #80

Closed WillStrohl closed 5 years ago

WillStrohl commented 5 years ago

When I try to use a background image, it only displays the file name in the final rendered view. The path for it is removed. I can look at the raw data and see the full path correctly saved.

This occurs even if I manually prepend the path in the template file itself. It's completely changed. This makes me think that handlebars is doing this, but I can't figure out how to prevent it.

Has anyone run into this before? How do you fix it?

image

image

image

WillStrohl commented 5 years ago

D'oh! This was actually due to a really deviously deceptive mistake...

When using the image data type, don't use a preceding slash like /Images to denote the Images folder found in the Portals directory. Instead, if you want the images folder, just use the folder name without the preceding slash, such as Images.