News Archive Years List Block

This block is used when creating a news archive page on your site for easily viewing all news articles that were published in a specific year. A list of years (as links) is output, allowing visitors to click a year to filter the list of news articles displayed in a separate News List block.

This block is only appropriate if you have new articles that span multiple past years. If you don't, it's not useful to use this block.

Requires News A collection of features or functionality that can be enabled on sites. WDS has made several optional modules available to site administrators to enable on their site. For example, the "News" module enables the News content type and provide a News List Block for displaying news on a page.

This block is available after enabling the News module on your site.

Example Use

  1. Create a page with a 75/25 layout section
  2. In the larger section, add a News List block
  3. In the smaller section, add the News Archive Years List block
  4. Save the layout

Observe that clicking each year link in the news archive year list block reloads the page and filters the news list block to only display news that was published in the selected year.

If the News List block is configured to output a title, the year will be appended to the title to help indicate that the results are being filtered.

Screenshots

News archive years list block showing links for years 2021-2015 in descending order.

Note that if there are no years to display, this block will hide itself automatically.