Using MVC - Introduction
This is a series of articles about using MVC, mainly in relation to Kentico Cloud. Let's highlight some of the MVC artifacts and patterns that are worth using!
- Introduction (current part)
- Use View-Models
- Display Templates Basics
- Display Templates Advanced Usage
- Display Templates with Kentico Cloud
- Implementing Inheritance
Remember the article MVC: Re-use Views of Content Items? Three months ago, we had a dream of strongly typed content, composing pages of re-usable modular content and a re-using the visuals automatically in MVC.
Now, that dream came true.
We've implemented everything that's required to use MVC Display templates. Display templates, when combined with Kentico Cloud, allow business users to compose pages easily with reusable modular content items. Even if users completely remix the page with completely different modular content items of different content types, the MVC app will always render the page without the need of a touch of a developer!
To make it happen, we had to first develop the following state of the art tech:
- The Delivery .NET SDK supporting both .NET Framework and .NET Core through the .NET Standard
- Strong typing with a code generator
- The automatic typing at runtime
And finally, we've updated our MVC sample app to not only reflect the coolest new stuff in the Delivery .NET SDK, but also to demonstrate the aforementioned Display templates and other best practice with MVC and Kentico Cloud. We'll continue in improving it once new features make it to the product - to Kentico Cloud.
Let's jump into the part 2 to see how view-models can be useful. In the ongoing parts, we'll demonstrate Display templates and other best practice in MVC. Stay tuned!