---
title: "Add an archive"
slug: "add-an-archive"
abstract: "Group your blog posts by using the Archive component."
---
# Add an archive

The Archive component displays blog archives in a tree. It groups blog posts by their entry date using a configurable date format.

To add the Archive component:

- From the Toolbox, drag the Archive component to the page, and in the Archive toolbar, click **More**, and click **Edit Component Properties** to specify the details for the Archive:

    | Field | Description |
    | --- | --- |
    | Format | Select the date format used to group your blog posts. If left empty, the year displays in yyyy and the month is written out.<br><br>You can add new date formats here:<br><br>*sitecore/System/Settings/Feature/Experience Accelerator/Navigation/Enums/Archive Format* |
    | Name of the field used for date | Determines the date used to organize the blog posts. Enter the name of the date field in the template of your blog post.<br><br>Alternatively, you can use the standard template statistics fields:<br><br><ul><li>`__Created`: The date and time at which the system created the version.</li><li>`__Updated`: The date and time at which the system last updated the version.</li><li>`__Publish`: The date and time for which your publishing is scheduled.</li></ul> |
    | Data source | Click **Browse** to select a node from the tree or use a query. The archive will display the posts from the selected blog grouped by date. If the selected data source is not a blog, the archive displays the *Archive is Empty* message.<br><br>If you leave the data source field empty, what the archive displays depends on the location of the page:<br><br><ul><li>Under the blog root node - displays grouped posts archive from current blog.</li><li>Not under the blog root node - displays *Archive is empty* message.</li></ul> |
    | Source type | Select the level to display. You can choose **Children**, **Siblings**, or **Items using the same template**. |