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:

  1. Drag the Archive widget on your page and perform one of the following:
    To display an archive of:
     Procedure

    Blog posts
    1. Add the Blog posts widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.Blogs.Model.BlogPost.

    Events
    1. Add the Events widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.Events.Model.Event.

    News
    1. Add the News widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.News.Model.NewsItem.

    Images
    1. Add the Image gallery widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Image.

    Videos
    1. Add the Video gallery widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Video.

    Documents
    1. Add the Download list widget to the page.
    2. Click the Edit button in the upper-right corner of the Archive widget.
    3. In ContentType input field enter Telerik.Sitefinity.Libraries.Model.Document.
  2. 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.
  3. 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.
  4. 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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?