Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hallo, i have question how call macro(usercontrol) in umabraco admin template->master, if i insert using content page the macro working, but how call in template->master.
thanks
Hi riski
you can use
@Umbraco.RenderMacro("yourMacroAlias")
to render a macro within a template.
There is some info here on passing parameters:
https://our.umbraco.org/documentation/reference/templating/Mvc/views#renderingMacros
regards Marc
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How call Macro in master template
Hallo, i have question how call macro(usercontrol) in umabraco admin template->master, if i insert using content page the macro working, but how call in template->master.
thanks
Hi riski
you can use
@Umbraco.RenderMacro("yourMacroAlias")
to render a macro within a template.
There is some info here on passing parameters:
https://our.umbraco.org/documentation/reference/templating/Mvc/views#renderingMacros
regards Marc
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.