Macros are text expressions that the system evaluates and converts into values. By using macros, you can create dynamic website content and in general configure the application to perform different actions under different conditions. Macros range from simple expressions for loading values from data in the system, to complex sets of instructions that lead to a certain result.
Learn where in the Kentico user interface you can enter macro expressions, and about the available assistance features.
One of the most common ways to leverage macros is to define dynamic conditions for various types of functionality.
The system provides a large number of methods that you can call in macro expressions. View this reference to learn about the available methods.
Macro expressions on MVC sites
When working with the MVC development model, usage of macros is fully supported for the administration interface and for all processes that run within the Kentico application (for example marketing automation processes or recalculation of contact scores).
However, macros are not automatically resolved when displaying page content on your MVC site. If you wish to use macros within page content, you need to manually resolve the macros using the API before you render the data on the live site.