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



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


As the rating field is not shown properly;




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”/>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>