So if I have an image file in my page's directory and then I have a imageIntroPic field, that lets me select this image file as a var, what would be the exact code to display this image on the webpage? Currently I have this:
<div class="slide-pic" style="background-image: url(@{ imageIntroPic})"></div>
The value of imageIntroPic is contact.jpg , the url of the webpage is contact so the generated path is /contact/contact.jpg , which is incomplete and incorrect. Funny thing is when I tried to mangle with the output by changing the code to:
<div class="slide-pic" style="background-image: url(/pages/@{ imageIntroPic})"></div>
the output path changed to /pages/contact.jpg , not /pages/contact/contact.jpg , like I expected.
I can't find any useful tips within available information on how to use the image* variable produced by the selector.