Copied to clipboard

Flag this post as spam?

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


  • Petras Surna 90 posts 144 karma points
    Jan 25, 2011 @ 00:52
    Petras Surna
    0

    Can the data submitted from a Contour form be displayed on a page in Umbraco

    Can the data submitted from a Contour form be displayed on a page in Umbraco?

     

     

  • Harald Ulriksen 207 posts 249 karma points
    Jan 25, 2011 @ 07:35
    Harald Ulriksen
    0

    Absolutley,

    you can use XSLT or a user control to display contour data. Contour is shipped with some Xslt helper functions such as GetRecordsFromFormOnPage.

    Create a new xslt and verify that you have a xmlns definition for Contour:

    xmlns:umbraco.contour="urn:umbraco.contour"

    And that it's also in the exclude-result-prefixes as umbraco.contour

    You can then use

    <xsl:for-each select="umbraco.contour:GetRecordsFromFormOnPage($currentPage/@id,'formid')//uformrecord>

    ...

    </xsl:for-each>

    Remember to replace formid with the id of your form. Also see the documentation http://umbraco.org/pro-downloads/contour/ContourDeveloperDocs.pdf

    Hope this helps,
    Harald

Please Sign in or register to post replies

Write your reply to:

Draft