Weird after copying the Contour.Addons.DynamicObjects.dll, I still cant save the razor file, which triggers me an error message missing Contour namespace.
error CS0234: The type or namespace name 'contour' does not exist in the namespace 'umbraco' (are you missing an assembly reference?)
GetApprovedRecords from Comment List
Hi Guys,
Anyone can point out how do get ApprovedRecordsFromPage in Razor. Just like you would do in XSLT.
//fuji
I don't know what that method returns, but in Razor you can probably just do this:
Jeroen
Hi Jeroen,
From Tim post here, i think i might need to add the assembly for the namespace to work.
Weird after copying the Contour.Addons.DynamicObjects.dll, I still cant save the razor file, which triggers me an error message missing Contour namespace.
Now that i got it working i cant get the Comment Value to display.
Everything works well until when displaying the Approved "Comment" @record.leaveacomment
Anyone??
Hi Fuji,
I think you need to capitalize the first letter of the property name when using "." notation (see razor cheat sheet http://our.umbraco.org/projects/developer-tools/razor-dynamicnode-cheat-sheet).
Have you already tried with @record.Leaveacomment?
Cheers,
Michael.
Hi Michael,
Thanks for the replay but not working. I tried both
Hi Fuji,
Do you get any error, or do you just get nothing displayed? Did you try with @record.GetProperty("leaveacomment").Value
NB: if your property name is "leaveacomment", I think you need to use it as-is in the GetField method, without capitalizing the first letter.
Cheers,
Michael
Tried those as well but nothing is showing up apart from an error message "Error loading MacroEngine script"...
//fuji
is working on a reply...