Umbraco v7.13.2, Default Render Engine - Web Forms
I am trying to get a terratype to display in my partial view macro. I'm doing this to try to display the location of a park. I created a data type called "Park Terratype" that has the terratype editor. I created a document type call "Park LIsting" that has a property call "parkMap" that uses the "Park Terratype" data type. In my partial view macro code I have the following:
CS1973: 'HtmlHelper PartialViewMacroModel has no applicable method named 'Terratype' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
Terratype in Partial View Macro
Umbraco v7.13.2, Default Render Engine - Web Forms
I am trying to get a terratype to display in my partial view macro. I'm doing this to try to display the location of a park. I created a data type called "Park Terratype" that has the terratype editor. I created a document type call "Park LIsting" that has a property call "parkMap" that uses the "Park Terratype" data type. In my partial view macro code I have the following:
This doesn't work. I get the following error:
CS1973: 'HtmlHelper PartialViewMacroModel has no applicable method named 'Terratype' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
What am I doing wrong?
I figured it out. For whatever reason, this produced a null value:
So I switched it to this:
And now it works.
is working on a reply...