Thursday, February 19, 2009

Remove the '! New' tag for uploaded items

A requirement to reduce the time period for which the "! New" tag is displayed for any new items uploaded to a site made me hunt for this solution.

And it is right under the STSADM hood, such a powerful tool indeed !

I wanted to get the "! New" tag displayed only for the current day on which a document is uploaded to a document library. By default, MOSS looks like it remembers this for more than a day.

Here is a simple command, which does the job fairly easily.

stsadm.exe -o setproperty -pn days-to-show-new-icon -pv 1 -url [your site url]

You may set the propertyvalue (pv) = 0, if you don't want to display it ever.