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
    Apr 02, 2012 @ 14:06
    Fuji Kusaka
    0

    Comments in Contour not displaying anymore

    Hi All,

    I have a weird issue with contour when adding a comment to my page. When adding a comment and after approving the comment in contour section i cant get the comment to display on my page. Only the name of the member is being displayed.

    However the comments just stopped working, Old comments a week ago is being displayed but not new comments.

    Here is how my xslt looks like

     

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

        <!-- Display the number of records -->
        <div id="recordscount">
          <xsl:choose>
            <xsl:when test="count($records) = 0">
              (0) comments
            </xsl:when>
            <xsl:when test="count($records) = 1">
              (1) comment
            </xsl:when>
            <xsl:otherwise>
              (<xsl:value-of select="count($records)"/>)  Comments
            </xsl:otherwise>
          </xsl:choose>

       

        <div id="records">

          <!-- Loop all records -->
          <xsl:for-each select="$records">
            <div class="record">
                  <div class="commentTxt">
                    <!-- Display 'Comment' field of the record, make sure there is a field called 'Comment' on the form -->
                     <xsl:value-of select="umbraco.library:ReplaceLineBreaks(.//fields/comment//value)" disable-output-escaping="yes"/>
              </div>
              <!-- Display 'Name' field of the record, make sure there is a field called 'Name' on the form -->
              <div class="postBy">
                Posted by :  <span><xsl:value-of select=".//fields/name//value"/>&nbsp; </span>-&nbsp;<xsl:value-of select="umbraco.library:FormatDateTime(./created, 'dddd, MMMM dd, yyy hh:mm tt')"/>  
                </div>
            </div>
          </xsl:for-each>

        </div>
         </div>

     

    Anyone???

  • Comment author was deleted

    Apr 02, 2012 @ 15:35

    How does it look in the entries viewer?

    Did someone rename the fields, that might be causing the issue

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 02, 2012 @ 16:32
    Fuji Kusaka
    0

    Hi Tim,

    I can see the comments in the Entries Viewer. All Comments need to be approved first but nothing is being displayed. 

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 02, 2012 @ 17:24
    Fuji Kusaka
    0

    Got it working.....i just remember changing the caption of my Comment Text Area but not updating it in my xslt!!!!

     

    Thanks

  • Comment author was deleted

    Apr 02, 2012 @ 18:00

    Great, thought it would be that ;)

Please Sign in or register to post replies

Write your reply to:

Draft