I want to allow the background image for my content container to be set via a page property. I am having a lot of trouble figuring out how to reference these properties in the master template. My initial thought was to use the MenuItemTeaserImage, but I could always add another field as needed.
I would like to insert the path for this image into the style property of a div on my masterpage. Is this even possible? When I try to reference properties using the syntax used by transformations <%# VariableName %>, nothing happens. I am already using this code to grab the document name for display:
contentHead.Text = CMS.CMSHelper.CMSContext.CurrentPageInfo.DocumentName.ToString();
Is this how I should access the image value as well?
I feel like this is a basic question, but I have not had any luck figuring it out. Any help would be appreciated.