If you could tell some more about your setup, I think that I could help you with a possiblesolution.
But I have some questions. What version of Umbraco are you using? Are you using Webforms or MVC? Are you using XSLT or Razor for pulling out data from Umbraco.
Are you planning to use the same background image on every page, or should it be possible to set an individual background image on the pages?
body background image in master page
Hi,
I am new in umbraco.
I have a master page and body has a background image. How can I make the background image cantent managable?
Thanks
Elham
Hi Elham,
If you could tell some more about your setup, I think that I could help you with a possible solution.
But I have some questions. What version of Umbraco are you using? Are you using Webforms or MVC? Are you using XSLT or Razor for pulling out data from Umbraco.
Are you planning to use the same background image on every page, or should it be possible to set an individual background image on the pages?
Looking forward to hear from you.
/Dennis
Hi Dennis,
Actually I found my answer. I am working with Webform and XSLT
<head>
<umbraco:Macro Alias='backgroundImage' runat='server'></umbraco:Macro>
</head>
<xsl:variable name="bggradient" select="umbraco.library:GetMedia($homeNode/headerBackgroundGradient, 0)"/>
<xsl:template match="/">
<style type="text/css">
body {background: url(<xsl:value-of select="$bggradient/umbracoFile" />) repeat-x scroll 0% 0% #FFF;}
</style>
</xsl:template>
is working on a reply...