Razor problem: Insert images as a backgroundimages
Hi
I'ma totalnewbie torazor Is there anyone whocan explain to mehowI inserta picture asa background image? I have usedMediaPicker (name: billedeAfDestination)
var chosenMedia = Model.MediaById("billedeAfDestination"); <p>Here: @Model.chosenMedia </p>
Razor problem: Insert images as a backgroundimages
Hi
I'm a total newbie to razor
Is there anyone who can explain to me how I insert a picture as a background image?
I have used Media Picker (name: billedeAfDestination)
I appreciate your help
/Kate
Hi Kate,
Try this one:
No, it dit not work
I think it is wrong in this line:
Because it does not returne anything when I write:
Yes, "billedeAfDestination" - isn't ID. "billedeAfDestination" - property name. Try to find Media node ID.
Thanks
I found this link: http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors/Media-Picker
And this worked for me:
But thanks for your help, it lead me in the right direction
You are welcome )
is working on a reply...