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.
This block is available after enabling the News module on your site.
- Create a page with a 75/25 layout section
- In the larger section, add a News List block
- In the smaller section, add the News Archive Years List block
- 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.
Note that if there are no years to display, this block will hide itself automatically.