NewsTicker should (optionally) filter out Expired Announcements

Aug 29, 2009 at 4:06 AM

Ideally, the NewsTicker should either:

  • only show Announcements that have not yet expired, or
  • optionally, perhaps via a configuration checkbox, only show Announcements that have not yet expired, or
  • optionally allow user to select a list view to be used by the web part that could be filtered to accomplish the same.

I found where in NewsTickerWebPart.cs the code needs to be modified to accomplish my first solution (see below) but have no idea how to rebuild the solution such that it can be reinstalled on the server and actually work.

camlQuery.Query = "<Where><Geq><FieldRef Name='Expires' /><Value Type='DateTime'><Today/></Value></Geq></Where><OrderBy><FieldRef Name='Created' Ascending='True' /></OrderBy>";

You have built a fantastic control.  I think adding this option in some way would make it much better.

Thank you for you work on this.

--Robert

Coordinator
Aug 30, 2009 at 9:00 AM

Hi Robert,

Excellent! Thanks for the CAML query! I will see that its included in the next release!

Thanks a lot :)

Cheers,

Chaks

Coordinator
Aug 30, 2009 at 9:01 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.