43 votes

Razor DynamicNode Cheat Sheet

With the release of the updated Razor and DynamicNode features in 4.7.1 I thought it was high time that we had a cheat sheet to refer to when working with Razor.

The A4 PDF cheatsheet covers the following aspects

  • DynamicNode 
  • DynamicMedia 
  • Dictionary
  • Properties
  • DOT Notation 
  • Collections 
  • Filtering & Ordering 
  • Traversing 
  • Property Checking 
  • IsHelpers 
  • Macro Parameters 
  • Types 
  • Permissions 
  • Basic Razor language features 
  • @Library helper
Change Log:
Version 1.3
  • Spelling mistakes fixed on Descendant
  • Added @Dictionary["alias"]
  • Added DescendantOrSelf()
  • Added AncestorOrSelf()

Version 1.2
  • Fixed issue with @Library.MediaById(int)
  • Fixed spelling on .IsPosition() & .Position()

 

Screenshots

Package owner

Peter Gregory

Peter Gregory

Peter has 1614 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Peter Gregory
  • Created: 03/10/2011
  • Current version 1.3
  • License MIT
  • Downloads on Our: 37.1K