I've been trying to utilise Umbraco 8 in a new project. (I've got C# experience but never used Umbraco before)
I've added templates and set it up to accept data, however I've set up a "Home" DocType and added an Image Selector. After setting and publishing the data, I'm now trying to update the template to display the Image, and keep running into errors, I've tried:
var backgroundImageId = Model.Value("backgroundImage");
var backgroundImage = Umbraco.Media(backgroundImageId);
@Model.Value("backgroundImage").Url
And a bunch of others which haven't panned out. I just can't seem to get it to work.
Any suggestions appreciated.