Classic MVC mode

Classic MVC mode is an integral part of ASP.NET MVC development and is thus familiar to most developers in this field. Classic MVC mode comprises of plain controllers and views and the only area it differs from other MVC modes is the way you register your routes.

You first implement your custom controller, view, and model that you want to use in classic mode. For more information, see For developers: Create custom models, controllers, and views

Next, you register a route for your implemented controller.

Register a route

This step differs slightly that registering a route in Sitefinity CMS because of the specifics of Sitefinity CMS MVC support. The following code sample demonstrates how to register a route in classic MVC mode:

IMPORTANT: We recommend that you register all your routes with a prefix to differentiate them from the ones used by Sitefinity CMS. There are a lot of internal routes for system features (for example, workflow, authentication, and so on), so this is the best way to avoid clashes. If you want to register routes that start from the root of the application, we recommend using pure MVC mode.

For more information, see:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?