I'm fairly new to cshtml/razor, and struggling to insert a contour form via a macro in a template.
I've tried using both a "Rich Text" and "Form Picker" datatype on the doctype, but can't get the form to render correctly.
I've read through this thread, but it appears that it refers mostly to Umbraco v6+, the trouble is we're still using v4.7.0
I'm sure there must be an easy way to do this, so any help would be appreciated!
Error loading Razor Script
d:\inetpub\wwwroot\Flowcrete\App_Data\TEMP\Razor\inline-53180e55e27180395360b90e28f30c22.cshtml(17): error CS0234: The type or namespace name 'RenderMacro' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
How do I insert Contour form in a template macro?
Hi,
I'm fairly new to cshtml/razor, and struggling to insert a contour form via a macro in a template. I've tried using both a "Rich Text" and "Form Picker" datatype on the doctype, but can't get the form to render correctly.
I've read through this thread, but it appears that it refers mostly to Umbraco v6+, the trouble is we're still using v4.7.0
I'm sure there must be an easy way to do this, so any help would be appreciated!
Thanks, David.
Comment author was deleted
How does it render, does it render something or ... ?
Here's the macro as it stands (still a work in progress):
When "CampaignQAForm" has "form" as a Rich Text data type, I've used:
This gives the following error:
Error loading Razor Script 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'First'
When "CampaignQAForm" has "form" as a Form Picker, I've used:
Which gives the following error:
Error loading Razor Script d:\inetpub\wwwroot\Flowcrete\App_Data\TEMP\Razor\inline-53180e55e27180395360b90e28f30c22.cshtml(17): error CS0234: The type or namespace name 'RenderMacro' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
I hope this makes sense?
Thanks, David.
is working on a reply...