Macro expressions

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.

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 the macro syntax

Kentico uses a macro language (K#) with a wide range of syntax options and features.

Enter macro expressions in the system

Learn where in the Kentico user interface you can enter macro expressions, and about the available assistance features.

Create macro conditions

One of the most common ways to leverage macros is to define dynamic conditions for various types of functionality.

Find information about macro methods

The system provides a large number of methods that you can call in macro expressions. View this reference to learn about the available methods.

Troubleshoot macros

If you encounter problems when working with macro expressions, the system provides several tools that can help identify and fix the issues:

Extend the macro engine

If the default functionality of the macro engine does not cover all of your requirements, developers can extend the macro engine.

Learn to create custom: