Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Defining the

...

Type

The Dinamico page types are located in XXXin your site's Themes folder, e.g.

~/Dinamico/Themes/Default/Views/ContentPages/Index.cshtml

 Simply create a .cshtml file in this folder to define a new page type. You'll then need to decorate this file with Dynamic Registrations, explained below. The page type is available in the N2CMS Admin UI as soon as you save the page. You don't need to recompile the web application.

Note

Dynamic page types are only available when using ASP.NET MVC and Razor, and are tested using .NET 4.5 and higher (although they may work with other versions of .NET). Dinamico is not generally compatible with the Web Forms template pack. You need to install the Nuget packages for ASP.NET MVC and Razor in order for Dinamico to work. The Dinamico Nuget package will install these for you.

Creating a View

The basic idea is to be able to create multilpe views with different editors by only adding a view. This is a step aside from a fully strongly typed model.

...