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