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, ...Changing image depending on active tabChanging image depending on active tab
Previous
 
Next
New Post
9/18/2007 6:43 PM
 

Hi.

Have You just used <td  style="background:url(<%= SkinPath & PortalSettings.ActiveTab.TabName %>BG.gif)" > and then it worked? Strange. it seems like the dir is right (as far asI can see)

Just to clearify. If I specify something i my skin it overrules CSS? I have background in CSS.

Have 2x checked filename.

I was wondering If the code changes the wrong picture? I mean behind the visible stuff.  It is TopRow1 I want to change picture in (the default picture on this is set in CSS also). does this seems right?

<

table class="SiteWidth" cellpadding="0" cellspacing="0" align="center">

 

<tr>

 

<td class="TopRow1" valign="top">

 

<table width="100%" cellpadding="0" cellspacing="0">

 

<tr>

 

<td class="CurrentDate" valign="top" >

 

<dnn:CURRENTDATE CssClass="Header" runat="server" id="dnnCURRENTDATE" />

 

 

<td style=background:url('<%= SkinPath & Portalsettings.ActiveTab.TabName %>BG.jpg)'" ></td>

 

<td class="HeaderRight">

 

<dnn:Login CssClass="Header" runat="server" id="dnnLOGIN" OnLoad="dnnLOGIN_Load" />&nbsp;&nbsp;|&nbsp;&nbsp;

 

 

<dnn:USER CssClass="Header" runat="server" id="dnnUSER" /></td>

 

</tr>

 

<tr>

 

 

<td class="Logo" colspan="2"><dnn:logo runat="server" id="dnnLOGO" /></td></tr>

 

</table>

 Btw offcourse I have 1 danish character :-( But I'll fix this later... didn't think of this

Bo :-)

 
New Post
9/19/2007 2:15 PM
 

Ah, sorry, I put the closing single quote accidently at the wrong place: it must be before the closing bracket, not after it! Also, you forgot the opening double quote after the style attribute, The correct line is (note again the hilighting green background):

<td style="background:url('<%= SkinPath & Portalsettings.ActiveTab.TabName %>BG.jpg')" ></td>

If this doesn't work either, then you can download my trial skin from www.xws.de/dnn/dnn-blue-activetab.zip. It was derived from the default DNN-Blue skin and changes the  background image for the menu row and the row with the Copyright and Terms of Use links when the home page (name = "Home") is called. It uses two different methods to change the image - see the comments in lines 30 and 65 of file 'ActiveTab.ascx'.

Hope that helps!

 
New Post
9/20/2007 1:15 AM
 

Hi

Thanks, I'll give it a try as soon as I get off job :-)

Bo :-)

 
New Post
9/21/2007 10:21 PM
 

Hi.

It works like a charm (well almost :-) )... It must have been  " " " and the " ' "  messing it op. But it is close. 

Just used:  <td style="background:url('<%= SkinPath & Portalsettings.ActiveTab.TabName %>BG.jpg')" ></td>

It is similar to the one in line 30, can't figure out how line65 work so nice the other works..

Thanks for You help

Bo :-)

 
New Post
9/23/2007 2:11 PM
 

BTW: if you have problems with tab names that contain special characters (as I had), you can use the tab ID instead of the tab name:
<td style="background:url('<%= SkinPath & Portalsettings.ActiveTab.TabID %>BG.jpg')" ></td>
Advantage: the skin continues to work if the page is renamed.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing image depending on active tabChanging image depending on active tab


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