divLeft Will Not Disappear

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/30/2012 11:40:07 PM
Gravatar
Total Posts 26

divLeft Will Not Disappear

This seems like an easy one but I cannot figure it out, when I make my left sided menu disappear and there is no other content in the left column, the left column refuses to disappear so we can use the whole width of the content area, it is an artisteer generated skin, here is the code:

<div class="art-content-layout-row">
<asp:Panel ID="divLeft" runat="server" CssClass="art-layout-cell art-sidebar1 leftside"
Visible="True" SkinID="pnlPlain">
<portal:SiteMenu ID="SiteMenu1" runat="server" UseTreeView="true" HideMenuOnSiteMap="false"
SuppressImages="true" ></portal:SiteMenu>
<asp:ContentPlaceHolder ID="leftContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel ID="divCenter" runat="server" Visible="True" CssClass="center-rightandleftmargins"
SkinID="pnlPlain">
<portal:Breadcrumbs ID="Breadcrumbs" runat="server"></portal:Breadcrumbs>
<portal:ChildPageMenu ID="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>
<a id="startcontent"></a>
<asp:ContentPlaceHolder ID="mainContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel ID="divRight" runat="server" Visible="True" CssClass="art-layout-cell art-sidebar2 rightside"
SkinID="pnlPlain">
<asp:ContentPlaceHolder ID="rightContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Panel>
</div>

The left column refuses  to disappear and outputs like such

<div id="ctl00_divLeft" class="art-layout-cell art-sidebar1 leftside left2column cmszone">

</div>

Any help would be much appreciated.

5/1/2012 12:32:23 AM
Gravatar
Total Posts 355

Re: divLeft Will Not Disappear

What version of mojoPortal are you using, and which version of Artisteer?

5/1/2012 9:11:41 AM
Gravatar
Total Posts 18439

Re: divLeft Will Not Disappear

Hi,

<portal:SiteMenu is the main top level menu, it is never expected to not have any pages in that menu therefore if it is in the left side, the left side will always be shown.

If you are using it as a sub menu you should instead use <portal:PageMenu, if that has no pages the left side will be hidden if no other content exists there.

Hope that helps,

Joe

5/2/2012 5:46:41 PM
Gravatar
Total Posts 26

Re: divLeft Will Not Disappear

That explains it for me Joe thank you, I may need to develop another skin to use in this instance without the menu on it, enjoy the beers.

5/3/2012 5:59:47 AM
Gravatar
Total Posts 18439

Re: divLeft Will Not Disappear

Thanks as always for the beers!

Cheers,

Joe

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