Archive widget
Use the Archive widget to display published content items grouped by date on your page.
EXAMPLE: You can display all the news created so far, grouped according to the year they were published. If you have news published since 2008, then the Archive widget displays a list that contains the years 2008, 2009, and 2010. When you click a year, the system displays the news published in this year.
To configure the Archive widget, perform the following:
- Drag the Archive widget on your page and perform one of the following:
Procedure |
Blog posts |
- Add the Blog posts widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.Blogs.Model.BlogPost.
|
Events |
- Add the Events widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.Events.Model.Event.
|
News |
- Add the News widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.News.Model.NewsItem.
|
Images |
- Add the Image gallery widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Image.
|
Videos |
- Add the Video gallery widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Video.
|
- Add the Download list widget to the page.
- Click the Edit button in the upper-right corner of the Archive widget.
- In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Document.
|
- In edit mode of the Archive widget, in DateBuildOptions input field, enter one of the following:
- YearMonthDay
Groups the content items according to the year, the month, and the date they were published.
- YearMonth
Groups the content items according to the year and the month they were published.
- Year
Groups the content items according to the year they were published.
- In edit mode of the Archive widget, in ShowItemCount, enter one of the following:
- True
After the date the system displays in brackets the number of published items for this date.
- False
The system does not display the number of items for this date.
- Click Save.
The system saves the setting and closes the editing mode of the Archive widget.
For more information about advanced configuration options, see Advanced configuration of widgets.