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
This question is basically the same as http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker/digibiz-advanced-media-picker/22966-Macro-parameters but I'm looking for a Razor solution. I'm new with Razor in Umbraco and dynamics in C#. I haven't seen any examples using DAMP with parameters. (I want to use parameters so I can have reusable scripts/macros.)
This obviously doesn't work:
var link = Parameter.linkMedia;dynamic mediaItems = Model.link.mediaItem;
I don't know how to get the string value of the linkMedia parameter and use it as the name of the property in mediaItems.
Hello Keith,
I think this topic can help you: http://our.umbraco.org/forum/developers/razor/19984-Razor-variable-property.
Jeroen
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Macro parameters with Razor
This question is basically the same as http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker/digibiz-advanced-media-picker/22966-Macro-parameters but I'm looking for a Razor solution. I'm new with Razor in Umbraco and dynamics in C#. I haven't seen any examples using DAMP with parameters. (I want to use parameters so I can have reusable scripts/macros.)
This obviously doesn't work:
I don't know how to get the string value of the linkMedia parameter and use it as the name of the property in mediaItems.
Hello Keith,
I think this topic can help you: http://our.umbraco.org/forum/developers/razor/19984-Razor-variable-property.
Jeroen
is working on a reply...