Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 28, 2012 @ 12:43
    Fuji Kusaka
    0

    Manual Approval not working

    Hi Guys,

    I have a comment form runing under v4.7.1 but I want all comments to be Approved before being visible on the website. Under my Setting Mode in contour section i have Manual Approval checked but still even Submitted Comments are visible.

    Somehow i changed the Xslt to

    <xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage(@id)/uformrecord[state = 'Approved']"/>

    But nothing is showing up now!!!

    Any suggestions on this?

    //fuji

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Feb 28, 2012 @ 14:34
    Tom Fulton
    0

    Hi Fuji,

    That should work, what does the rest of your XSLT look like?

    Are you maybe trying to select uformrecord in your for-each?  You won't need to since you are doing it above, ie

    <xsl:for-each select="$records">

    If that's not the case you can also try looking at the XML to make sure it's correct

    <textarea><xsl:copy-of select="$records"/></textarea>

    -Tom

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 28, 2012 @ 18:18
    Fuji Kusaka
    0

    Hey Tom,

    Its working, in my loop i was calling the uformrecord again so this was giving me all the records been submitted and Approved at same.

    Anyway here is the solution if someone needs it.

    <xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage($currentPage/@id)/uformrecord[state = 'Approved']" />

    <
    xsl:for-each select="$records">
    .....
    </
    xsl:for-each>


    But thanks for pointing out.

     

    //fuji

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies