No definitions found when using -- Contour.Addons.DynamicObjects.Library.GetApprovedRecordsFromPage
I have created a couple of blog razor macro's for a site. The test site works fine, and I am in the process of transfering all the macro's, templates etc across to the live site.
However when it came to saving 2 out of my 7 macro's an error was thrown:
'Contour.Addons.DynamicObjects.Library' does not contain a definition for 'If'
The line being referenced here is:
<h3>@count @Library.If(count > 1,"comments","comment") for “@Model.Name”</h3>
Is it getting confused between contours "Library" if so, how do I explicitly write it to use umbraco's, I do not know the name space.
The name 'Library' does not exist in the current context
No definitions found when using -- Contour.Addons.DynamicObjects.Library.GetApprovedRecordsFromPage
I have created a couple of blog razor macro's for a site. The test site works fine, and I am in the process of transfering all the macro's, templates etc across to the live site.
However when it came to saving 2 out of my 7 macro's an error was thrown:
'Contour.Addons.DynamicObjects.Library' does not contain a definition for 'If'
The line being referenced here is:
Is it getting confused between contours "Library" if so, how do I explicitly write it to use umbraco's, I do not know the name space.
The name 'Library' does not exist in the current context
The line being referenced here is:
Is this the same issue as the one before?
Any help greatly appreactated!
is working on a reply...