The bolded portion, the access attempt to Model.MacroParameters["propertyName"], is throwing a KeyNotFoundException ("The given key was not present in the dictionary").
This was working fine, but has stopped working. Not sure if it was due to upgrading from 6.1.1 to 6.1.2 or not. I upgraded to 6.1.3 and the problem persists. It's simply not passing the macro parameter to the macro.
FIXED: Did not realize that this wasn't entirely a coding construct. Went into the back-office and saw the parameter for the Image.cshtml macro was named "propertyAlias" instead of propertyName. Changed the code and it all works.
MacroParameters not being passed from Umbraco.RenderMacro
I have a partial view that is my standard header. It calls the following:
So, this is supposed to pass "propertyName" as a macro parameter. In my Image.cshtml, I have this code to read that property:
The bolded portion, the access attempt to Model.MacroParameters["propertyName"], is throwing a KeyNotFoundException ("The given key was not present in the dictionary").
This was working fine, but has stopped working. Not sure if it was due to upgrading from 6.1.1 to 6.1.2 or not. I upgraded to 6.1.3 and the problem persists. It's simply not passing the macro parameter to the macro.
Anyone have any thoughts?
Thanks,
David
FIXED: Did not realize that this wasn't entirely a coding construct. Went into the back-office and saw the parameter for the Image.cshtml macro was named "propertyAlias" instead of propertyName. Changed the code and it all works.
is working on a reply...