SharePoint

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 hivetemplateglobalxml) 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>

Leave a Reply

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