Creating custom models, controllers and views

The process of creating a controller, view and model is almost identical to the one you’d use in a regular ASP.NET MVC project. You can read more about the latter on the ASP.NET MVC site:

For the sake of completeness, we will go over the process of creating a plain controller, view and model in a Sitefinity project.

All MVC artifacts in Sitefinity should be stored under the Mvc folder. Everything under that folder has the same naming convention as in a new MVC project. Controllers, Views and Models are each in their respective subfolders.

MVC folder structure

Creating the model

Creating the controller

Creating the view

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK