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
<
<