Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background Image per Page ?Background Image per Page ?
Previous
 
Next
New Post
2/12/2010 8:51 AM
 

It is unclear from the description what is the exact desired behavior.  Do you want each page to have it's own background?  Do you want each page to have the same background?

If you want each page to have the same background, then I would use CSS in the skin.

body { background-image:url(whatever.jpg); }

With a little script, which is just a slight alteration of Mark's technique, and which uses the technique that Vasillis outlines at http://www.thinkofdesign.com/blog/id/68/css-selectable-pages.aspx, I could ensure that each page would have a unique class on the body tag.

<script language="vb" runat=server> 
    Protected Overrides Sub OnLoad(ByVal e As EventArgs)  
       MyBase.OnLoad(e)  
       dim body as HtmlGenericControl = ctype(Page.FindControl("Body"), HtmlGenericControl)
       body.Attributes("class") = "page" & PortalSettings.ActiveTab.TabID
    End Sub
</script>
 

Then I could use a generic body CSS style for a default (shown above).  Where I have pages that need a different background, I just use:

.page40 { background-image:url(myrealspecial.jpg); }

This gives you complete control over the background image on each page using CSS.


Joe Brinkman
DNN Corp.
 
New Post
1/30/2012 2:32 PM
 
Hi Joe et al,

Could you help me with this in a more specific way? I am brutally ignorant on this so bear with me.

Where and in which file does the < script... part go and where and in which file does the .page40... go? And how would you determine the background image path and refelect that in the code?

thanks,

Will
 
New Post
2/11/2013 4:07 PM
 
using the DNN Dark Knight Home Standard Menu Skin

I want to change the 'background color' of white, to a 'background image file'

how do I do that? I am fairly new at this so please be very specific
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background Image per Page ?Background Image per Page ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out