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()