can mojoPortal be used with asp.net MVC in Visual Studio 2015 ?

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.
1/18/2018 1:25:09 AM
Gravatar
Total Posts 1

can mojoPortal be used with asp.net MVC in Visual Studio 2015 ?

Hi

I have just downloaded "mojoportal-2600-pgsql" from you web site. I need PostgreSQL as my backend database.

I am totally new in mojoportal. I am aware about Umbraco CMS. 

I need to create a web site with mojoportal and MVC .Net. It's kind of CMS site where admin User can add Blog, News, Events etc from CMS admin panel and it will be visible on Website front end. Can mojoportal be used with ASP.Net MVC  with Visual Studio 2015 ? As i have my own custom business logic etc to set.

Another thing i have my own other database in PostgreSQL that i need to use to display information to user as well. so where can i define Connectionstring to my Database in mojoportal project? Also how can i connect to that database, add my own Views, Controller, Javascript/Jquery stuff and all? 

Ex.

Suppose i have my custom database "dbCourses" in postgresql which has one table "tblCourse", where i need to store information related to Courses like course a, Coueres B and so on. Now i need to access this database and it's table as well in my application. So where to define this Database connection string and where to define Views, Controller, JQuery etc ?

Can you please help me here urgently as i am runing late behind and need to give estimate of time of the project ?


Thanks,
Rohan Dave

1/18/2018 3:10:02 PM
Gravatar
Total Posts 2239

Re: can mojoPortal be used with asp.net MVC in Visual Studio 2015 ?

Hello,

Yes, mojoPortal can be used with MVC. We're currently running Visual Studio 2017 but you should be able to get away with using 2015. I suggest you get the code from the repository though, don't try to build against the released files using Visual Studio. That'll probably cause you more headaches than it's worth.

Follow the advice in this article for connecting to your other database. The advice there references MSSQL but the same logic can be followed for PGSQL. I suggest writing your code (Views, Controllers, etc...) in a separate project. Easiest way to do this is to download the repo, open the solution and then create a new project and add your code there. When you are ready to publish your feature, you can use Visual Studio's publish feature to put the code in a separate folder on your computer. You can then copy your published feature to your mojoPortal site and run setup (/setup/default.aspx). 

Be sure to check out our Developer documentation.

Thanks,
Joe

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