Module 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.

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.
6/10/2010 3:06:21 AM
Gravatar
Total Posts 32

Module Development

Hi All,

We are new to Mojo but where able to setup our dev environment and an initial module with some help of forum members. Thanks for that.

I think the videos are interesting but not convenient to use. there fore again a question

We've started on a module but some questions we have (we are used to DNN):

- how to create a settings function for a module

if a module has several usercontrols in it how to create dynamic link on control A to show control B

Samples are welcome

peter

6/10/2010 8:23:13 AM
Gravatar
Total Posts 18439

Re: Module Development

Hi Peter,

Best to read all the developer documentation and watch all the videos. You may find that inconvenient, it was also inconvenient making the videos, it took a lot of my time, but a lot of important information is covered in them. If you are serious about learning mojoPortal development it is worth the investment of your own time to watch them. I think it will save you time in the long run.

Really the best tutorial is to study the code of existing features.

In mojoPortal features are self contained and there is no cross talk or communication between them. How you wire things up inside a feature is entirely up to you, though as I said you could follow examples of existing features. Myself I don't usually try to make one usercontrol manipulate another except in a parent child where a usercontrol may load and configure other usercontrols inside it but I don't typically make sibling usercontrols talk to each other.

Usually if you need to show and hide or load different controls based on user interaction inside a modulecontrol then you should wrap that in an UpdatePanel so the postbacks don't affect other modules that may exist on the page, or you can link to supporting pages for additional functionality as we do in more complex features like blog and forums.

Module settings are covered here http://www.mojoportal.com/modulesettings-adeveloperconvenience.aspx and also in the videos 28-30

Take a look at the latest code for the ContactForm.ascx.cs, it is a simple feature but uses some module settings. In the LoadSettings method you will see how it uses a wrapper class to load all the settings into a more friendly object ContactFormConfiguration which exposes each setting as a property. The settings themselves come from a hashtable named Settings that is intrinsic to SiteModuleControl base class, so the ContactFormConfiguration is just a helper class that parses all the settings into properties.

Best,

Joe

6/10/2010 8:36:31 AM
Gravatar
Total Posts 32

Re: Module Development

Joe

thanks, I've started watching the videos and indeed they are good , sorry if i gave you the wrong impression.

Our first module is up and running including the settings working ok. (not bad for 24 hours in a new environment in a language (C#) which is not my best.

I want to compliment you with the work done and appreciate your responsiveness.

Once we are up and running doing what needs to be done for our clients i will giving back in the form of French localization and maybe a simple flag control for multi language

Peter

6/10/2010 8:46:53 AM
Gravatar
Total Posts 18439

Re: Module Development

Hi Peter,

Glad to hear it is going well! I appreciate your participation in the community and look forward to your contributions.

Best,

Joe

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