Im using sharepoint Data View Web Part, I just want to get the Count of recently added items count from list mean which have "NEW" tags
the above image has two new items so it should show "2" in count ...
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIm using sharepoint Data View Web Part, I just want to get the Count of recently added items count from list mean which have "NEW" tags
the above image has two new items so it should show "2" in count ...
You can use JSLink to add both the jQuery library and an external .js on the data view web part like this:
~site/Style%20Library/js/jquery-1.11.3.min.js|~site/Style%20Library/js/newitemscount.js
and add the following code:
$(document).ready(function(){
var newItemsCount = $(".ms-newdocument-iconouter").length + " new items";
$("#pageTitle").append(newItemsCount).wrap("<span/>")
});