.aspx page left/right column

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.
8/4/2011 5:49:46 AM
Gravatar
Total Posts 31

.aspx page left/right column

hello,

I am trying to use the left and right column in an aspx page. My page is extending from mojoBasePage, but my left content doesn't show up.

I tried to run SetupColumnCss in the page_render event with (true, true) as parameters but my columns still don't show up.

does anyone know how to use the left and/or right column in an aspx page.

Best,
Laurence Mommers

8/4/2011 6:54:43 AM
Gravatar
Total Posts 18439

Re: .aspx page left/right column

If you're trying to show cms page side content on custom non cms pages, you can study the code of the blog and the List/Links feature which do this. See ViewList.aspx.cs in the blog feature, you'll see it has this line calling a method in mojoBasePage:

LoadSideContent(true, true);

you would need to pass the pageid of the cms page as a query string param to your custom page.

Hope that helps,

Joe

8/4/2011 7:12:13 AM
Gravatar
Total Posts 31

Re: .aspx page left/right column

No,

I have some static content in my .aspx page.

<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
    <asp:Label ID="lblNaam" CssClass="vastgoedName" runat="server" Text="[Naam]"></asp:Label><br />
    <br />
    <asp:Label ID="lblOndernaam" CssClass="vastgoedName" runat="server" Text="[ondernaam]"></asp:Label>
    <asp:Label ID="lblPrice" CssClass="vastgoedPrice" runat="server" Text="[prijs]"></asp:Label>
    <asp:Label ID="lblshortdescription" CssClass="vastgoedPrice" runat="server" Text="[korte omschrijving]"></asp:Label>
</asp:Content>

And i want to show this in my left content.

Best,
Laurence Mommers

8/4/2011 7:30:05 AM
Gravatar
Total Posts 18439

Re: .aspx page left/right column

In your layout.master file, set AlwaysShowLeftColumn="true" on <portal:StyleSheetCombiner

Hope that helps,

Joe

8/4/2011 7:42:21 AM
Gravatar
Total Posts 31

Re: .aspx page left/right column

Now i am using the following code in the Page_load

((StyleSheetCombiner)Page.Master.FindControl("StyleSheetCombiner")).AlwaysShowLeftColumn = true;
            ((StyleSheetCombiner)Page.Master.FindControl("StyleSheetCombiner")).AlwaysShowRightColumn = true;

this is were i was looking for.

Thanks,
Laurence Mommers

 

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