Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jacob Polden 67 posts 177 karma points
    Jun 13, 2012 @ 12:01
    Jacob Polden
    0

    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 &ldquo;@Model.Name&rdquo;</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

    The line being referenced here is:

    @Library.If(0","""

    Is this the same issue as the one before?

     

    Any help greatly appreactated!

Please Sign in or register to post replies

Write your reply to:

Draft