New Icon on New Items

I got a question today asking what the criteria was for how long the !New icon is displayed on new items in a list.  Hell if I know...So I did some research.

Taking a look at the onet.xml (located in 12 hive\template\global\xml) I did a search for the new.gif and found it surrounded by an <IfNew> element.  A search on MSDN leads to this document which states:

"Returns TRUE if the item is considered new. Usually, this means that the item was created after midnight the day before. This element renders its contents if the item was created today, that is, after only one day has passed, the number of days being a registry setting for which the default value is 1."

I had to read that a few times, but it boils down to two days.

To check that, run:

stsadm -o getproperty -propertyname days-to-show-new-icon -url "<site_url>"

It returns 2.

If you want to change it, run:

stsadm -o setproperty -pn days-to-show-new-icon -pv <number_of_days> -url "<site_url>"

Published 19 July 07 01:42 by ryanm1201
Filed under:

Comments

# Links (7/22/2007) « Steve Pietrek’s SharePoint Stuff said on July 22, 2007 5:29 PM:

PingBack from http://stevepietrekweblog.wordpress.com/2007/07/22/links-7222007/

# Sharepoint BUZZ said on August 6, 2007 9:42 AM:

Here&#8217;s another quick list of SharePoint articles around the blogosphere: 15 Ways / Questions To A Smooth SharePoint Contract - Adam goes thru his list of 15 questions you should be asking yourself or your future employer before you agree to the

# http://randomdust.com/blogs/ryan/archive/2007/07/19/new-icon-on-new-items.aspx said on March 27, 2008 2:36 AM:

PingBack from http://frankthefrank.info/entry.php?id=kwws%3d22udqgrpgxvw1frp2eorjv2u%7cdq2dufklyh2533%3a23%3a24%3c2qhz0lfrq0rq0qhz0lwhpv1dvs%7b

Anonymous comments are disabled