Thursday, February 2, 2012

"New" Icon Indicator in SharePoint - Disable, Replace, Set Duration

Lot of folks asking me on SharePoint "!New" Indicator. By default SharePoint 2007/2010 shows "! New" Indicator for 2 days from the creation of an List item/document. It simply indicates it's newly added content such as document or list item!

sharepoint new tag
How to Replace New tag in SharePoint 2010?
As part of branding, we can replace the New Indicator. Its just an image, new.gif , located at:/_layouts/1033/images/new.gif (\14\template\layouts\1033\IMAGES\new.gif). Behind the scenes ddwrt:IfNew Function determines whether to display this image or not.

How to change New tag duration in SharePoint?
You can query the current value of !New indicator by:  
stsadm -o getproperty -pn days-to-show-new-icon -url <URL-of-web-app>
If you want to change the days:
stsadm -o setproperty -pn days-to-show-new-icon -pv <days-to-show> -url <web-app-URL>

How To Remove/Disable New Tag in SharePoint?
Want to disable the !New tag indicator? execute the STSADM: stsadm -o setproperty -pn days-to-show-new-icon -pv 0 -url <web-app-URL>
Here we passed "0" in Property value, which disables the New indicator.

PowerShell Way to change new tag duration:
$webApp=Get-SPWebApplication "<web-app-URL>"
write-host "Current New Indicator Duration:" $webApp.DaysToShowNewIndicator
# set the Duration to 7 days
$webApp.DaysToShowNewIndicator = 7
# Important: If you dont call "update", your changes will not be saved!
$webApp.Update()

SharePoint 2013/2016 new item icon
While all of the above procedures are valid for SharePoint 2013, new icon has been changed and moved to a image sprite - "spcommon.png"
new icon in sharepoint 2013

MSDN Article & Technet on New tag indicator.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

9 comments :

  1. Document that I uploaded yesterday have the new icon tag, but one that I just uploaded today does not - whay does that happen?

    ReplyDelete
    Replies
    1. Is your Listview customized to XSLT? Are you overwriting a file by uploading a new one?

      Delete
  2. Do you know what database permissions are required to do this? I receive a login failed when attempting to change this value. I am the farm admin.

    ReplyDelete
    Replies
    1. Its recommended to run STSADM with Farm Admin account which has dbcreator and dbsecurity roles on SQL Server.

      Delete
  3. This was awesome. I ran the powershell version and it worked. Stsadm has lost it's use since no one can run it.

    ReplyDelete
  4. Hi I want to Display the New Tag Symbol on Quick Launch Items, For e.g we have Announcements on Quick Launch ,if any user post a new announcement then the Green New tag should appear on Announcements in Quick Launch ,is there an way to do this?

    ReplyDelete
  5. Thank you for the helpful post! Is there a way to make it so that new items in a column that I specify will have the "New!" message displayed next to them? For example, I currently have a list that has the "New!" indicator displaying on columns where I don't need it to be displayed, I do, however, need it to be displayed on a column that I have created named "Inventory #".

    ReplyDelete
    Replies
    1. You can create a custom column in the list, says "IsNew" and set the value Yes or No. Based on this IsNew column's value, You can either display or hide the New indicator using SPD or calculated columns.

      Delete
  6. Thank you for your response! I am a little confused by what you mean. Would you be able to provide some more detail please?

    ReplyDelete

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...