Displaying right or left columns on manually created .aspx pages

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.
7/28/2008 8:30:13 AM
Gravatar
Total Posts 18

Displaying right or left columns on manually created .aspx pages

Hi Joe,

I created an .aspx page in Visual Studio that uses layout.Master (3-column).  Is there anyway I can tell layout.Master to show the right column or left column for this .aspx page?  It seems no matter what content I put in the "rightContent" pane (e.g. adding modules by code or textual content) , the layout.Master file thinks it's empty.  I suppose the logic only works for pages created through the CMS?  But not for manually created .aspx pages?

Any advise on this matter is greatly appreciated.

Thanks!

Sherwin

7/28/2008 8:47:53 AM
Gravatar
Total Posts 18439

Re: Displaying right or left columns on manually created .aspx pages

Hi Sherwin,

Yes its true that only works for content pages. What you should do is in your custom page is setup your own column layout all inside the center column so it doesn't depend on the master page managed layout for other columns.

One simple way that may work well enough for you is to use some built in style (floatpanel class) we already have like this:

<div class="floatpanel">
<asp:Panel id="pnlColumn1" runat="server" CssClass="floatpanel">
<h2 class="moduletitle">Column 1 Heading"</h2>

... more content

</asp:Panel>

<asp:Panel id="pnlColumn2" runat="server" CssClass="floatpanel">
<h2 class="moduletitle">Column 2 Heading"</h2>

... more content

</asp:Panel>
</div>
 

You can add as many panels as you like but if they don't fit they will wrap, which is actually more gracefull than requiring scrolling. Wrapping them all inside another div with floatpanel class helps with some IE issues.

Hope it helps,

Joe

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