Friday, August 8, 2008

The New! document or listitem days

Ever wondered how to change the number of days to show the "New!" icon that appears for new documents and list items in a SharePoint site? There is a property days-to-show-new-icon that needs to be set using the stsadm command line.

To get the current value for a web application use:
stsadm -o setproperty -pn days-to-show-new-icon -url http://sharepointsite/
The default value for the property is 2

To set the value use:
stsadm -o setproperty -pn days-to-show-new-icon -pv 5 -url http://sharepointsite/
Now, the "New!" icon will appear for 5 days for all new documents and list items

No comments: