K
Kelvin.YuShen
Hello there,
I got a problem when I was uploading the skin I developed.
Following is the code from my original skin template (skin.htm):
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center">[CONTENTPANE:3]</TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top"
align="center">[CONTENTPANE:1]</TD>
<TD class="contentpane" valign="top"
align="center">[CONTENTPANE]</TD>
<TD class="rightpane" valign="top"
align="center">[CONTENTPANE:2]</TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center">[CONTENTPANE:4]</TD>
</TR>
</TABLE>
Here is error message: "could not load skin:
/portals/_default/Skins/AAWP/skin.ascx error: ID "contentpane" is
already used by another control."
Then I open the skin.ascx file, and here is some code from that file:
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center" runat="server" id="contentpane"></TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top" align="center"
runat="server" id="contentpane"></TD>
<TD class="contentpane" valign="top" align="center"
runat="server" id="ContentPane"></TD>
<TD class="rightpane" valign="top" align="center"
runat="server" id="contentpane"></TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center" runat="server" id="contentpane"></TD>
</TR>
</TABLE>
Obviously the skin uploader has converted CONTENTPANE, CONTENTPANE:1,
CONTENTPANE:2, CONTENTPANE:3 and CONTENTPANE:4 all into
id="contentpane", which caused the error.
So then I have to manually changed the skin.ascx file to make the skin
working.
Here is the code I changed inside the skin.ascx file:
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center" runat="server" id="TopPane"></TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top" align="center"
runat="server" id="LeftPane"></TD>
<TD class="contentpane" valign="top" align="center"
runat="server" id="ContentPane"></TD>
<TD class="rightpane" valign="top" align="center"
runat="server" id="RightPane"></TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center" runat="server" id="BottomPane"></TD>
</TR>
</TABLE>
Can anyone tell me what the cause of the error? I strictly followed the
DNN skin user manual. Why do I have to manually change the skin.ascx
file to make it work?
Thanks a lot!
I got a problem when I was uploading the skin I developed.
Following is the code from my original skin template (skin.htm):
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center">[CONTENTPANE:3]</TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top"
align="center">[CONTENTPANE:1]</TD>
<TD class="contentpane" valign="top"
align="center">[CONTENTPANE]</TD>
<TD class="rightpane" valign="top"
align="center">[CONTENTPANE:2]</TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center">[CONTENTPANE:4]</TD>
</TR>
</TABLE>
Here is error message: "could not load skin:
/portals/_default/Skins/AAWP/skin.ascx error: ID "contentpane" is
already used by another control."
Then I open the skin.ascx file, and here is some code from that file:
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center" runat="server" id="contentpane"></TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top" align="center"
runat="server" id="contentpane"></TD>
<TD class="contentpane" valign="top" align="center"
runat="server" id="ContentPane"></TD>
<TD class="rightpane" valign="top" align="center"
runat="server" id="contentpane"></TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center" runat="server" id="contentpane"></TD>
</TR>
</TABLE>
Obviously the skin uploader has converted CONTENTPANE, CONTENTPANE:1,
CONTENTPANE:2, CONTENTPANE:3 and CONTENTPANE:4 all into
id="contentpane", which caused the error.
So then I have to manually changed the skin.ascx file to make the skin
working.
Here is the code I changed inside the skin.ascx file:
<TABLE cellspacing="3" cellpadding="3" width="100%"
border="0">
<TR>
<TD class="toppane" colspan="3" valign="top"
align="center" runat="server" id="TopPane"></TD>
</TR>
<TR valign="top">
<TD class="leftpane" valign="top" align="center"
runat="server" id="LeftPane"></TD>
<TD class="contentpane" valign="top" align="center"
runat="server" id="ContentPane"></TD>
<TD class="rightpane" valign="top" align="center"
runat="server" id="RightPane"></TD>
</TR>
<TR>
<TD class="bottompane" colspan="3" valign="top"
align="center" runat="server" id="BottomPane"></TD>
</TR>
</TABLE>
Can anyone tell me what the cause of the error? I strictly followed the
DNN skin user manual. Why do I have to manually change the skin.ascx
file to make it work?
Thanks a lot!