Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How long does something say new?

Status
Not open for further replies.

vivasuzi

Programmer
Jun 14, 2002
183
After you add a new list item, how long does the "New!" image appear? It seems to be a few days, but I'd like to know if there is an exact time.

Also, is it possible to change this to stay shorter or longer?

Thanks for any help!

[cat2] *Suzanne* [elephant2]
[wavey] [wiggle]
 
cd /d %programfiles%\Common Files\Microsoft Shared\Web Server Extensions\60\BIN
stsadm.exe -o setproperty -pn days-to-show-new-icon -pv 0 -url [Your Virtual Server's URL]


So yes use the stsadm tool (example above) to change it
 
I think it was 3 days by default, but i am not an 100% sure.

But ofcourse you have access to the stsadm tool. It is installed with sharepoint, and is used to set all kinds of properties. Youll find the exe in you installation dir for sharepoint (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\BIN)

To run open a CMD window and chance the directory to that install folder, then you can call the stsadm.exe with its switches.

-help : list of all operations
-o : operation (setproperty / getproperty)
-pn: property name (in your case the: days-to-show-new-icon)
-pv: property value (example has a 0 so it doesnt show the icon you can change this to any number of days)
-url: (optional in some cases) in this case you specify the virtual server for the property to be set (in it contains spaces use ""s)

stsadm.exe -o setproperty -pn days-to-show-new-icon -pv 0 -url [Your Virtual Server's URL]

Its realy not rocket science...

Greetings

 
I'm running a little test to see how long it stays.

I don't have access to that b/c we are only allowed access to our sites. We can't even edit the CSS layouts and things like that. I wouldn't even know where sharepoint is installed.

We only use the in-browser "modify this page" or frontpage to edit the pages.

[cat2] *Suzanne* [elephant2]
[wavey] [wiggle]
 
My test results, In case you are interested!

-Testing how long the *new* label stays. This is added at 1:17 PM on 6/28/2005

-Still New as of 11:39 am on 6/29/05

-Still New as of 4:52 pm on 6/29/05

-New was gone this morning - 6/30/05

So around 1 day and 18 hours, but I don't know when it went away. Could have gone away right after I left work. I might try again later, starting the experiment at a different time so I can catch it while I'm at work, but for now this is good enough info.

[cat2] *Suzanne* [elephant2]
[wavey] [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top