Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a Content Query Web Part in the home page of my site root that points to a announcement list in a sub site.

Is it possible to also show the new item notification image as the announcement list?

I am using SharePoint Standard 2010.

share|improve this question
add comment

2 Answers 2

The new Item notification is configurable at the farm level (default is 2 days) via (from MSDN, valid for SharePoint 2010 too, http://support.microsoft.com/default.aspx?scid=kb;en-us;825510&Product=spts&wa=wsignin1.0)

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

Using this concept you could envision creating a new calculated property of type Boolean, e.g. IsNew to calculate a difference in Days and if greater than 2 to be set to True (it could also be done without the new column, by calculating this difference in XSLT directly).

A 2nd step is to update the Content By Query Web part XSLT (your own copy of the default ItemStyle.xsl in the Styles Library - i mentioned copy because it is not a good practice to change the default one, but rather to copy-it, change it and after exporting your CQWP from the page, changing the resulting XML to point to the new XSLT) to take into the new column and toggle visibility on the image.

share|improve this answer
add comment
up vote 0 down vote accepted

I followed Lauara Rogers' instructions here and worked like a charm.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.