Razor Cheatsheet

All the code snippets you need to get a jump start on building templates with Razor in Umbraco CMS.

The Razor Cheatsheet is a collection of common methods used for building templates and views in Umbraco CMS.

Get the Umbraco 11 Cheatsheet: https://umbra.co/razorCheatsheet

You can also find the cheatsheet on GitHub where you can give feedback, contribute, or download the template used to generate the sheet.

Use the cheatsheet if you:

  • Use Models Builder on your project and

  • Use Umbraco 11.

Most of the methods in the Umbraco 11 version of the cheatsheet will also work in Umbraco 10 and 9.

Last updated