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, ...The Curious Case of the Missing DIVThe Curious Case of the Missing DIV
Previous
 
Next
New Post
3/23/2009 8:01 AM
 

Guys

I am new to DNN and I am coming across a problem that seems so fundamentally wrong I cannot believe that it hasn't been noted before, this has therefore led me to think that I am in the wrong - which actually I hope I am as I would like to know the workaround.

Let me explain the issue... I don't like using tables for layouts as they are too awkward to work with on big designs, I therefore prefer to use DIVs. I am using nested DIVs in my skin and into some of those DIVs I am putting ContentPanes. The problem is that it would appear if you put a DIV containing a ContentPane inside another DIV which DOESN'T contain a ContentPane, the ContentPane disappears and is not present in the design panes drop down list.

I can understand why putting one ContentPane inside another ContentPane wouldn't work, but there seems nothing wrong to me with using nested DIVs to correctly position and control ContentPanes.

Here is the extremely basic HTML file that comprises my test skin that I put together to demonstrate the problem:

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml" >head>

 

</

<

<

<

<

<title>Untitled Page</title>head>body>div id ="ContentPane" runat="server"/>div id="BottomDiv" runat="server" />div runat="server"> <!--This DIV is used purely for positioning-->

<

div id="TheNestedDiv" runat="server" /> <!--This ContentPane will be invisible-->

</

</

</

div>body>html>

As you can see I have two 'Top Level' DIVS that both use an ID and these are being used as ContentPanes; I then use another DIV without an ID to act as a container for another DIV, called 'TheNestedDiv' - this is not present in DNN when uploaded, whereas the other two ContentPanes are.

I have tried using ContentPane tokens but these have no affect. If this is a bug or by design then it means you cannot use nested DIVs to position any ContentPanes which I find very odd indeed!

I look forward to hearing your thoughts on this issue.

Many thanks

Stuart

<

<

 
New Post
3/23/2009 1:16 PM
 

You post is distorted (security replacements I guess), so i'm not sure if I understand the problem exactly.

Anyway, any div that has runat="server" is a contentpane for DNN, so you cannot nest them.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The Curious Case of the Missing DIVThe Curious Case of the Missing DIV


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