News questions

Sherri Guthrie asked on October 10, 2014 20:46

I have two questions regarding News. First, is there a way to have a separate news widget that will display news items that are past the Published to date? I want to have a link to 'Old news' and display just the News that has expired.

Second, I have an RSS feed that displays items that are no longer published listed in the feed. When clicked, it produces an 404 error. The Documents Data source has Select published only clicked on. How do I not dipslay this item in the feed?


Recent Answers

Sandro Jankovic answered on December 1, 2014 11:05


In order to display news that are past the publish to date you could use the Repeater with custom query Web part which does not check the published status. There is an example of this Web part (using News articles) available in the sample Corporate Site under /Examples/Web-parts/Listings-and-viewers/Custom-query/Repeater-with-custom-query.

As for the RSS feed, since I was able to reproduce this behavior in the latest version this seems to be caused by a bug. I will check with the development team if there is something specific that is causing this but in the meantime you could use the following WHERE condition as a workaround: Published = 1

Please let me know if you have any additional questions.

Best Regards, Sandro

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.