Using macro expressions in menu items

You can use macro expressions in menu item URL or JavaScript command (when you're editing the menu item in Kentico CMS Desk). These macros allow you to dynamically replace macro commands with specified values of the current menu item, such as alias path, id path, node name.

 

You only need to put {%ColumnName%} macros in the menu item URL or JavaScript attribute. The URL will look like this:

 

products.aspx?show=brand&aliaspath={%AliasPath%}

 

The menu will redirect user e.g. to URL products.aspx?show=brand&aliaspath=/MobileStore/Products/Nokia.

 

Please note: All apostrophes (') in source data are escaped to \' so that they do not break JavaScript.