Display rating control in xslt list view webpart after migration from SP2010 to SP2013

0
54
views

 

Make sure you have Ratings setting enabled in your list/ library.

 

As the rating field is not shown properly;

RatingLogic1

 

 

Add below link for XSLT;

<xsl:include href=”/_layouts/15/xsl/blog.xsl”/>
<xsl:include href=”/_layouts/15/xsl/internal.xsl”/>
<xsl:include href=”/_layouts/15/xsl/fldtypes_Ratings.xsl”/>

 

Add below code for Rating;

<xsl:call-template name=”emit_RatingsInitialization”/>
<xsl:apply-templates select=”$Fields[@Name=’AverageRating’]” mode=”PrintField”>
<xsl:with-param name=”thisNode” select=”$thisNode”/>
<xsl:with-param name=”Position” select=”$Position”/>
</xsl:apply-templates>

LEAVE A REPLY

Please enter your comment!
Please enter your name here