Creating User Control Functions

Create and use User Controls as regular CMS Functions

Creating the User Control functions is a little bit different from creating other types of CMS Functions when it comes to defining parameters, changing widgets or providing the function description but similar to creating Razor functions.

You can create and edit User Control functions directly from your developer IDE (like Visual Studio) or in the CMS Console. Creating functions in 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 User Control functions

You can use User Control 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.