This project is read-only.

Integrating ASP.NET MVC Pages Within A Website Developed Using Content Management System

Topics: Core, Customizing Orchard
Oct 28, 2014 at 7:14 PM
  1. I have developed a page(.cshtml) in mvc which generates a grid with text(label) in some columns and dynamic controls(eg. textbox, dropdown) in some columns based on the value present in the database.
  2. The data is fetched from the table based on 2 conditions viz. (i) User Id. (ii) Module Id.
  3. 'User Id' is suppose to flow from Login page & 'Module Id' from Menu selection.
  4. For now, I have hard coded 'User Id' & 'Module Id' as both the login page and menu is not developed.
  5. I am planning to develop an admin panel for generating menus dynamically and configuring the look and feel. But developing this from scratch will be time consuming. So I thought of using a CMS through which I can create a login page and also manage to configure menu as required.
  6. So with respect to my above points, how can I integrate my .cshtml page if i develop the project using a CMS?
Nov 10, 2014 at 12:52 AM
The way you integrate such things is by creating an Orchard module, with controllers and views, which you already have. You might have to tweak some things here and there to integrate nicely, but that should be straightforward enough.