Custom Module does not inherit skin

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
5/1/2014 3:39:56 PM
Gravatar
Total Posts 30

Custom Module does not inherit skin

I have created a custom Module following the info available on this site.

The processing part works fine, but the module does not inherit Portal skin. Regardless of what skin is selected.

See the problem here.

http://www.spectrum-analytical.com/resources.aspx

The Gas Phase calculator is the problematic custom module

below is a snippet of the module. (everything below the </script> tag)

What am I missing?

 

Thanks

 

<mp:CornerRounderTop id="ctop1" runat="server" EnableViewState="false" />

<asp:Panel ID="pnlWrapper" runat="server" CssClass="panelwrapper linksmodule">
<portal:ModuleTitleControl id="Title1" runat="server" />
<asp:Panel ID="pnlMyClass" runat="server" EnableViewState="false" CssClass="modulecontent">
<table border="0" style="width: 100%">
 <tbody>
  <tr class="odd">
   <td style="width: 100%">
<h3> Gas Phase Conversion Calculator</h3>
    <asp:Label ID="Label1" runat="server" Text="Calculate Conversion:"></asp:Label><br />
Enter Value:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> ppbv <br/>
<asp:DropDownList id="ddAnalyte" runat="server" AutoPostBack="false"></asp:DropDownList>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Search" /> Molecular Weight:<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

<br />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>ug/m3
<br />
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>mg/m3
<br/>
</td></tr></tbody></table>
</asp:Panel>
<div class="modulefooter"></div>
</asp:Panel>

<mp:CornerRounderBottom id="cbottom1" runat="server" />

 

 

5/1/2014 3:52:22 PM
Gravatar
Total Posts 18439

Re: Custom Module does not inherit skin

Hi,

Your module is based on older information, you should update it to use the new panels discussed in the article A More Flexible Set of Container Panels.

Hope that helps,

Joe

5/1/2014 4:08:14 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Custom Module does not inherit skin

When I create a new module, I like to copy and paste the containing panels from a delivered module, then adjust for my namespace/class. The HTML Fragment in mojoPortal.Features.UI/HtmlInclude/HtmlFragmentInclude.ascx is a great one to borrow from. You can't get much simpler than that!

5/2/2014 9:08:05 AM
Gravatar
Total Posts 30

Re: Custom Module does not inherit skin

That worked. Thanks for quick response.

 

You must sign in to post in the forums. This thread is closed to new posts.