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
Hi All,
How can I create macro parameters from view and pass values when render macro, instead of creating the macro parameters from the CMS?
Thank you.
If you mean just in Razor code, something like this should do it (the full documentation can be found here):
@Umbraco.RenderMacro("myMacroAlias", new { name = "Ned", age = 28 })
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
Create Macro Parameters from Code Behind
Hi All,
How can I create macro parameters from view and pass values when render macro, instead of creating the macro parameters from the CMS?
Thank you.
If you mean just in Razor code, something like this should do it (the full documentation can be found here):
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.