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, ...dynamic skindynamic skin
Previous
 
Next
New Post
12/3/2008 1:27 PM
 

I'm tyring to add some borders to the LeftPane and RightPane.  Using a table I have created additional cells surrounding the pane and added the images to those cells, thus bordering the pane's.  However, if there is nothing added to that pane I would like it to be hidden and would like the surrounding cells to be hidden as well.  Without adding runat="server" to the surrounding cells how can I accomplish this?

I've considered two methods:

1.  dynamically load a skin based on server side code.  However I have been unable to dynamically load skin  here's my attempt:

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs)
   
        Dim link As HtmlLink = New HtmlLink
        link.Attributes.Add("type", "text/css")
        link.Attributes.Add("rel", "stylesheet")
        link.Attributes.Add("href", "cssTest.css")
        Me.Page.Header.Controls.Add(link)
       
    End Sub

2.  My other thought was to use server side code to make the client elements hidden.  However, I don't know how to do that.

 

Any help is appreciated.

 
New Post
12/3/2008 4:54 PM
 

Okay, I am successful at loading a skin using vb code, but now I need to figure out how to determine if a pane is hidden/collapsed/visible/whatever, OR to check to see if that pane has any content.

For instance...

       if LeftPane.IsVisible then
           ...load skinA
       else

           ...load skinB
       end if

I have not found an isVisible property, so how can I determine the status of a pane?

 
New Post
12/3/2008 5:35 PM
 

It's easier then you think.

An empty pane gets a class "DNNEmptyPane" and if you set the border to 0 for that class (below the border for not empty panes) you should be fine

(BTW, you must define your pane without any spaces between opening and closing tag or the class will not get rendered)

 
New Post
12/3/2008 6:06 PM
 

Sorry, but I'm not following.  I need to hide a cell next to the Pane if the Pane is empty.  How do I check to see if the pane is empty in my aspx in order to specify the other cell's visible property...OR...how do I check to see if the Pane cotains the class name "DNNEmptyPane".

Definitely a big thanks, though, for helping me identify the class name for empty panes!

 
New Post
12/3/2008 6:23 PM
 

Ok, sorry, I didn't read your post correctly. I think you would have to use JS to do that.

 Why don't you use a background-image for the TD as the border then you shouldn't have to hide the cell next to the pane?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dynamic skindynamic skin


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