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

About Rupesh Singh

Development experience with Microsoft SharePoint and its related technologies SharePoint 2010, SharePoint 2013, SharePoint 2016, Office 365, Javascript, JQuery, AngularJS, React JS, Node JS, SharePoint Framework, ASP.net, SQL Server 2008/2012, HTML5, CSS3, InfoPath, SharePoint Workflow, Power Apps, Power BI, SharePoint Customization, Power User.

View all posts by Rupesh Singh →

Leave a Reply

Your email address will not be published.

twenty − 17 =