Integrating new module with CMS Application

Topics: Customizing Orchard
Apr 10, 2012 at 9:42 PM
Edited Apr 10, 2012 at 9:52 PM

Hi,

We would like to know how to integrate a new module with Orchard CMS application.  The reason is, we have developed a sample project on google calendar(MVC) and needs to be integrated with orchard CMS applicatiion.  If this works, we can proceed for further development.

Please let us know how should we achieve this.  It would be of great help if you share any documentation or snippet to do this.

Regards,

Kamal

 

Apr 10, 2012 at 9:45 PM

Check on stackoverflow.com, this exact question has been asked and answered there. 

Apr 10, 2012 at 10:03 PM

Hi,

Thanks for your quick reply.

We have already followed the steps mentioned in the below URL

http://stackoverflow.com/questions/5269170/integrate-existing-asp-net-mvc-application-with-orchard-cms

While integrating the sample project as module in orchard cms, we are getting the following doubts/issues

1. How about solution file(.sln) of the our sample project? Do we need to delete or retain in this folder?

2. How about to Global.asax Page?

3.  After integration, when we run the application, we found two servers are running at same time

          1. server of the Orchard Site(http:\\localhost:30320\Orchardlocal)

          2. Server of the Sample applicatin(http:\\localhost:40786)

Also, we are not able to access the module successfully.

Please suggest us how should we proceed for further.

Regards,

Kamal

 

Apr 10, 2012 at 10:14 PM

First download a new copy of the Orchard source code and run an orchard website by itself without your custom code or 3rd party modules. This should give you an understanding of how orchard runs. You will see that it has its own .sln file, but you can create your own based on the one that comes packaged with orchard. You won't need your site's old .sln file you should back it up and delete it. You don't need your site's global.asax, because one comes with orchard (the point of running Orchard by itself first is to help illustrate this). 

If you run the site from visual studio with Ctrl+F5 you should just get one server (:30320). Once you integrate your custom code as an orchard module your app will not exist as a standalone application. The only "application" in that case will still be Orchard (:30320), and your app will simply be a module that Orchard will dynamically detect and load at runtime. 

If you cannot access your site, please post more specific details. "I can't access it"is not a useful report, as a developer you can probably guess what details would be necessary for someone to help you troubleshoot. 

Apr 10, 2012 at 10:53 PM

Hi,

Thanks for your reply.

Sure, we will follow the same and will get back to you with details if same issue exists.

Regards,

Kamal