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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...