"custom" pages and mojoportal

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/2/2008 2:22:26 PM
Gravatar
Total Posts 10

"custom" pages and mojoportal

i have actually have 2 questions;

1) I want to develop a site with mojoportal and need to create some custom pages. these pages will share the same look and feel as the rest of the site but will contain dynamic data eg grids pulling data from a database...how can i achieve this as i want the page to use all the "normal" mojoportal tags like site menu, search etc 

2) is there a way to extend the admin section of mojoportal to include  "custom" administration pages for custom database tables which i create?

 

thanks

7/2/2008 2:29:18 PM
Gravatar
Total Posts 18439

Re: "custom" pages and mojoportal

Hi,

1. Make your page inherit from mojoBasePage and use the same contentplaceholders like this:

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<mp:CornerRounderTop id="ctop1" runat="server" />
<asp:Panel id="pnl1" runat="server" CssClass="panelwrapper ">
<div class="modulecontent">

your grid or whatever here
</div>
</asp:Panel>
<mp:CornerRounderBottom id="cbottom1" runat="server" />
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />

Also if you have Codesmith, you can generate starter code for pages, business objects data access etc using templates I have included under the CodesmithTemplates folder in the source tree. This makes things go much faster.

2. See this link: http://www.mojoportal.com/addingcustomitemstotheadministrationmenu.aspx

Hope it helps,

Joe

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