-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ConcreteContentTypes is a package for the Umbraco CMS that will generate strongly typed models based on Content Types and Media Types.
The models are designed to be used for all CRUD operations and in all contexts: Views, SurfaceControllers, RenderMvcControllers and UmbracoApiControllers. As such they do not inherit from the Umbraco RenderModel or PublishedContentModel classes, they are simply wrappers around an IPublishedContent.
The models will attempt to strongly type properties wherever possible and support all standard Umbraco Property Editors. Future updates to the package are planned to include support for other third party property editors. Requests for such updates can be made on the issue tracker.
The models are generated using T4 templates, but do not require a Visual Studio plugin. Simply install the Package, save any Content or Media Type and the C# files will be created.
Please read the Getting Started section below, specifically the Basic Configuration page. There isn't much to set up but this will make your life easier!
The easiest way to install is via nuget:
Install-Package ConcreteContentTypes -Pre
You will need the -pre switch at the moment as it is still in pre-release version.
The Releases page contains all available releases.
If you clone the repository you will find the source code and an example site:
- ConcreteContentTypes.Sandbox - This is a Umbraco 7.2.4 installation based on the Fanoe starter kit that I have modified to use Concrete models.
Admin Username: admin, Password: password
- Creating an instance of a model
- Razor views
- WebApi Controllers
- Surface Controllers
- Hijacked Route Controller