Sunday, February 17, 2013

Magic of "New" Tag Indicator in SharePoint

 

        Want to replace it?

            
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.

      Want to change the values?

           
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>

        Want about Disabling it?
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.

 

No comments:

Post a Comment