Copied to clipboard

Flag this post as spam?

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


  • Kerri Mallinson 113 posts 497 karma points
    Oct 08, 2014 @ 10:54
    Kerri Mallinson
    0

    Help with Contour?

    Hi,

    I've posted this in the Contour Forum but no one seems to reply in there, not sure if anyone here can help?

    I'm using Umbraco 7.1.4 and Contour 3.0.21

    I have a comments form and Manual Approval is set to true in settings The records are being added to the database as 'Submitted' not 'Approved' (which is correct) but they are still appearing on the page using .GetApprovedRecordsFromPage

    Here is the code:

    @using Umbraco.Forms.Mvc.DynamicObjects
    <ul>
    @foreach (dynamic record in Library
    .GetApprovedRecordsFromPage(@CurrentPage.Id).OrderBy("Created"))
    {
     <li>
          @record.Created.ToString("dd MMMM yyy")
             <strong>@record.Name</strong>
         <span>said</span>
        <p>@record.Comment</p>
     </li>
    }
    </ul>
    

    Any help would be greatly appreciated. Thanks!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 11, 2014 @ 09:33
    Jan Skovgaard
    0

    Hi Kerri

    I have moved the topic into the Contour forum since that is where it belongs. I think a better tactic is to bump the post if no one has seen it. But the lack of help could also be that people are not sure about the issue you're having and then not providing an answer or they have simply missed it :)

    I'm not sure why the issue above happens - The code seems correct to me. Perhaps it's a bug in the GetApprovedRecordsFromPage method? - Maybe you should try filing an issue about this in the issue tracker for Contour.

    Hope this helps a bit.

    Cheers, Jan

  • Kerri Mallinson 113 posts 497 karma points
    Oct 14, 2014 @ 14:01
    Kerri Mallinson
    101

    Thanks Jan,

    It is a bug which is being investigated. There is a work around here http://our.umbraco.org/forum/umbraco-pro/contour/57089-GetApprovedRecordsFromPage-not-working if anyone else needs it.

Please Sign in or register to post replies

Write your reply to:

Draft