Make your websites with Razor
Thanks to the community support, C1 CMS can now enjoy the Razor syntax in a brand new type of CMS Functions - Razor functions.
Razor is a view engine option for ASP.NET. Although Razor is often associated with MVC, you do not need MVC support on your website to start creating and using Razor functions in C1 CMS. If you, however, do use Razor bundled with MVC, please consider using MVC Player.
- Enabling Razor
Learn how to enable Razor on a C1 CMS Website.
- Creating Razor Functions
Learn how to create Razor functions in C1 CMS
- Defining Parameters
Learn how to define parameters for Razor functions.
- Changing Widgets
Learn how to change widgets for parameters of Razor functions.
- Changing Return Types
Learn how to change types of return values in Razor functions
- Getting C1 CMS Data
Learn how to get CMS Data in Razor functions.
- Rendering URLs
Learn how to render Page URLs and Media URLs in Razor functions.
- Execute Other Functions
Learn how to execute other functions in Razor functions.
- List to Details
Learn how to create a simple List-to-Details function for CMS Pages using Razor.
- Advanced Setup
Learn how to change the root folder for your .cshtml files (Razor fuinctions) and do other advanced setup tasks.
- Getting Error Info
Learn how to get error information on Razor functions