How to create new module.

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/24/2009 4:59:51 AM
Gravatar
Total Posts 1

How to create new module.

I am new in MojoaPortal, i want to create new module (in C# with our coding) for HR only i.e "current openings" module. So i want to know how to create a new module and set the right for hr and admin only.

So please tell me all the procedure for the above same.

Thanks in advance.

Please help me.

8/24/2009 8:37:48 AM
Gravatar
Total Posts 2239

Re: How to create new module.

The Hello World example found in the Developer Docs should get you going. http://www.mojoportal.com/hello-world-developer-quick-start.aspx

8/27/2009 1:05:12 PM
Gravatar
Total Posts 1

Re: How to create new module.

After I copy the ascx files to the folder MyCustomModules under the root and add the feature to a page, the page show up as just a blank page. If I remove the feature then the page is fine. What am I doing wrong. I am using the files from the hello world example.

11/11/2010 3:57:33 AM
Gravatar
Total Posts 13

Re: How to create new module.

I'm trying to create a new module, but I have many doubts about how to start. I have a user control that connects to the database and save your connection string in Web.config.
Also use stylesheets and skins stored in the folder App_Themes. My question is how to integrate this user control in mojoPortal; I have understood that I can create a new module, but the article http://www.mojoportal.com/addingfeatures.aspx not clear to me, could someone please help me?

11/11/2010 4:55:43 AM
Gravatar
Total Posts 44

Re: How to create new module.

Hi, 

Have a look at the developer videos;

http://www.mojoportal.com/developertrainingvideos.aspx 

They will show you how to create a new module from start to finish.

Best Regards,

Vince.

11/11/2010 10:47:48 PM
Gravatar
Total Posts 13

Re: How to create new module.

Thank vincek. I created the module, but to create my user control I have the following problem. The user control has two DropDownList, each linked to their respective SQLDataSource to choose a country which shows their respective cities, this user control now works perfectly in a project but when integrated into a mojoportal module i have problems because the page loads and displays the countries, but when I choose one of the items do not carry the cities, but added the same countries and if they spike again in another country recently loaded cities but again the same problem I doubled countries by selecting the items, please let me know I'm doing wrong but I reiterate that this user control works correctly on another project.

I leave the code so that you take a look:

        protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlUTP.Items.Clear();
            ddlUTP.Items.Insert(0, new ListItem("[Select]", "0"));
        }

        protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
        {
            UTPID = Convert.ToInt32(ddlUTP.SelectedValue);
        }

 

11/12/2010 3:36:29 AM
Gravatar
Total Posts 44

Re: How to create new module.

Hi,

Without looking a the whole page, it's a bit difficult to know what the problem is.  Normally the SelectedIndexChanged event will cause a PostBack (unless you are using AJAX), you need to ensure that a) You are not re-populating the drop-down lists on PostBack and b) the SelectedIndexChanged event is calling the method that populates the second drop-down.  Normally you would pass the Country ID from the first drop-down to a method that populates the second drop-down.  You need to step through the code and see where the events are occurring and in what order.  Check that the PageLoad event is not re-populating your controls and that the AutoPostBack is set to True on the Country drop-down.

Best Regards,

Vince.

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