Creating Razor Functions
Create CMS Functions using Razor
Creating the Razor functions is somewhat different from creating other types of CMS Functions in terms of defining parameters, changing widgets or providing the function description.
You can create and edit Razor Functions directly from your developer IDE (like Visual Studio) or via the CMS Console. Creating functions via the CMS Console will handle folder/file creation for you, but you will not have the IDE features Visual Studio provides, like statement completion and write time compile warnings.
Using Razor functions
You can use Razor functions as other types of CMS Functions. You can insert them in the Visual Editor or Source Editor, use them as a function call in XSLT functions or as a value for other functions' parameters. Read more on using CMS Functions.