Computer Magic Logo
Insert macro in a template

Saturday, August 8, 2015

Published by Aristotelis Pitaridis

We open a Template and display its contents to the Template editor in order to insert the Macro. We put the cursor to the position that we want to add the Macro and we click the Insert Macro button.

We put the cursor to the position that we want to add the Macro and we click the Insert Macro button.

The insert macro panel will appear on the screen with a drop down list box which will allow us to select the macro.

We expand the drop down list and the list with the available Macros will appear. We click the Macro MyFirstMacro that we created.

Umbraco automatically adds the code required in order to add the Macro in our template.

We click on the Save button which is located at the upper right corner of the screen in order to save the Template. Now if we visit the page we will see that the macro appears on the screen.