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
I have a rich text editor in a nested content doc type, where i have a macro with a parameter...
How do i render that parameter in my Partial view macro file?
var myParam = Model.GetParameterValue<string>("citation");
'PartialViewMacroModel' does not contain a definition for 'GetParameterValue'
var myParam = Model.MacroParameters["citation"];
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
First thought, is the GetParameterValue is still there in V8
but it's an extension method if you add:
to the top of your PartialViewMacro does that make it work?
Yup, that works perfectly, thank you H5YR
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted