Can you translate your select statement into razor?
This is what I have at the moment: @foreach (dynamic record in Contour.Addons.DynamicObjects.Library.GetApprovedRecordsFromPage(@Model.Id).OrderBy("Created"))
Hi Jacob, I've not used Contour via Razor yet, so I've not got any experience of its API. If I have to work over the weekend, I'll fire up Visual Studio and have a look (: Good luck! Laurie
Bug? Problems with GetApprovedRecordsFromPage
Why do I get records with state = submitted and approved with:
<xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage($paramPage)" />
(I have my form set to "manual approval")
Is there any way to only get records with state Approved?
Did you get any where with this? I'm currently looking into this issue myself. Thanks, Lau
My solution was to use the GetRecords function, and then just filter them;
@LaurenceG
Can you translate your select statement into razor?
This is what I have at the moment: @foreach (dynamic record in Contour.Addons.DynamicObjects.Library.GetApprovedRecordsFromPage(@Model.Id).OrderBy("Created"))
***************************************************************************************************************************************************************************************************************
LaurenceG answer:
My solution was to use the GetRecords function, and then just filter them;
name="records"select="umbraco.contour:GetRecordsFromPage($currentPage/@id)/uformrecord[state = 'Approved']"/>
Hi Jacob, I've not used Contour via Razor yet, so I've not got any experience of its API. If I have to work over the weekend, I'll fire up Visual Studio and have a look (: Good luck! Laurie
Thank you very much for the reply! If you do let me know via twitter or whatever.
Jacob
is working on a reply...