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>
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.
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:
Any help would be greatly appreciated. Thanks!
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
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.
is working on a reply...