Confusion about custom pages and custom modules

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.
9/16/2008 8:43:41 AM
Gravatar
Total Posts 16

Confusion about custom pages and custom modules

Here I'm starting in a new thread. By seeing these threads

http://www.mojoportal.com/ForumThreadView.aspx?pageid=5&mid=34&ItemID=9&thread=829&postid=3553

http://www.mojoportal.com/ForumThreadView.aspx?pageid=5&mid=34&ItemID=9&thread=1747&postid=7137

I misunderstood the things and did created physical .aspx pages to meet my own requirement.

please just brief me out what exactly above threads meant for , as you said that we have to develop our own requirement as modules but not as pages.

 

Thanks

Priya

9/16/2008 9:09:20 AM
Gravatar
Total Posts 18439

Re: Confusion about custom pages and custom modules

As described in Overview of Feature Development, all features should be implemented as a .ascx control that inherits from SiteModuleControl. This makes the part that can plug into a mojoportal content page. The only time to create ,aspx pages is for additional supporting pages outside of the content system.

For example, the Forums feature is a complex feature. It has ForumModule.ascx which is its SiteModuleControl. When you put a instance of the forum on a page it is really putting an instance of ForumModule.ascx on the page. But since forums is a complex feature, it can't all be implemented in this one control, so we have some supporting pages like ForumView.aspx, ForumThreadView.aspx, ForumPostEdit.aspx, etc.

The ForumModule.ascx must always pass the correct pageid and moduleid in the url when it creates links, this way we keep the context of the page where the fourm is located. So ForumModule.ascx has links to ForumView.aspx and ForumView.aspx has links to ForumThreadView.asp etc, and each link must pass the correct pageid and moduleid to keep things tied together correctly. Pages like ForumView.aspx and ForumThreadView.aspx are outside the content system, that is they are not linked into the menu at all. They are only linked from inside ForumModule.ascx

This is all covered in the developer documentation.

Best,

Joe

9/17/2008 6:29:54 AM
Gravatar
Total Posts 16

Re: Confusion about custom pages and custom modules

Thank you joe, its clear now.

 

Thanks

Priya

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