I have been driving myself crazy trying to figure this out and nothing is working!
I am trying to add a background image to my website, a STANDARD PAGE document type has been set up with a 'PAGE IMAGE' property using the 'Umbraco.Textbox' where I want to paste my image URL such as:
When I try to link this property to the STANDARD PAGE TEMPLATE, it doesn't seem to be working, I have tried everything I can think of, including inserting an UMBRACO PAGE FIELD and selecting the related field ‘pageImage'.
This is what my current STANDARD PAGE template looks like:
And this is what it looks like from the CONTENT section:
The image is not outputting at the front end of my website, can anyone help!?
Hi, Jamie,
What is the output from this line Umbraco.Fields("pageImage")?
You need to "attach" this style to an element - for example
<div @Umbraco.Fields("pageImage")>....</div> which will results as:
Background Image not showing on web page
Hi,
I have been driving myself crazy trying to figure this out and nothing is working!
I am trying to add a background image to my website, a STANDARD PAGE document type has been set up with a 'PAGE IMAGE' property using the 'Umbraco.Textbox' where I want to paste my image URL such as:
style="height: auto; width: 100%; background: url('/media/1434/microsoft-dynamics-365.png'); background-position: center; background-position-y: 500px; background-attachment: fixed;"
When I try to link this property to the STANDARD PAGE TEMPLATE, it doesn't seem to be working, I have tried everything I can think of, including inserting an UMBRACO PAGE FIELD and selecting the related field ‘pageImage'.
This is what my current STANDARD PAGE template looks like:
And this is what it looks like from the CONTENT section:
The image is not outputting at the front end of my website, can anyone help!?
Hi, Jamie, What is the output from this line Umbraco.Fields("pageImage")? You need to "attach" this style to an element - for example
<div @Umbraco.Fields("pageImage")>....</div>
which will results as:In addition I noticed that you have "<" in the begging of the textfield Page Image which may cause some problems.
Mila
Hi Mila,
Thank you so much for your help, between the info you gave and a little tweaking I managed to sort it! :)
is working on a reply...