Custom Page - ASPX

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.
3/16/2011 11:20:56 PM
Gravatar
Total Posts 3
http://www.tagbak.co.uk

Custom Page - ASPX

Hi,

Would anyone happen to have a basic template for a custom aspx page?

I have managed to create a custom feature, but I want to integrate an existing shopping cart we have and features alone will obviously not be ideal once you start getting into things like checkout (unless I was to dynamically construct each page + features using mojo).

I know I was getting fairly close from cloning existing pages, but kept winding up with 'object reference not set errors' and no sign of a line number in the error message. Admittedly I haven't set myself up properly for developing a custom module as I'm being a bit lazy and short on time, but just dropping pages/controls in with codebehinds.

If anyone can provide just a basic page it would be a great timesaver!

Thanks
Jamie

3/17/2011 12:09:34 AM
Gravatar
Total Posts 3
http://www.tagbak.co.uk

Re: Custom Page - ASPX

ok scratch that, combination of me being an idiot and some .net weirdness!  I eventually thought to turn custom errors off so I could get an idea of what the problem was (as I'm being a bit naughty and just playing about with a live copy on a server) and hey presto it started working without error ... turned custom errors back to remote only and it carried on working!  So no idea what it was complaining about in the first instance, but problem solved anyway.

3/17/2011 12:12:31 AM
Gravatar
Total Posts 3
http://www.tagbak.co.uk

Re: Custom Page - ASPX

may be handy for someone else, basic code for themed page ...

 

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/App_MasterPages/layout.Master" Inherits="mojoPortal.Web.mojoBasePage" %>
<script type="text/C#" runat="server">


    override protected void OnInit(EventArgs e)
    {
        base.OnInit(e);
       //this.Load += new EventHandler(this.Page_Load);


    }

</script>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
<mp:CornerRounderTop id="ctop1" runat="server" EnableViewState="false"  />
<asp:Panel id="pnl1" runat="server" CssClass="panelwrapper ">
<portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
<div class="modulecontent">
test
</div>
</portal:mojoPanel>
<div class="cleared"></div>
</asp:Panel>
<mp:CornerRounderBottom id="cbottom1" runat="server" EnableViewState="false" />
</portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />

 

 

 

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