# Blocks

Blocks

# How do I import content blocks?

In order to export content blocks, we will require an Aero package. To install this package, type the following command in the project root directory:

```
composer require aerocargo/blocks-import-export
```

After installing the package, we can navigate to the **admin**then **Content Management**and finally, **Blocks**. In the top right corner of this page, we now have a button for importing blocks.

The .zip file required by the importer can only be generated by the content blocks exporter. If we do have an exported .zip file we can simply upload it within the modal that appears on button click. After uploading the .zip file and letting the blocks import, they should appear in the list.

# How do I export content blocks?

In order to export content blocks, we require an Aero package. To install this package, type the following command in the project root directory:

```
composer require aerocargo/blocks-import-export
```

After the package has been installed successfully, we can navigate to the **admin**, then to **Content Management**, and lastly to the **Blocks**. We can now use the bulk action to select which blocks we wish to export, otherwise if we wish to export all of the content blocks we select the checkbox next to the name header field of the table.

Finally, we apply the “Export blocks” bulk action at which point the export will generate the necessary blocks and download them to the user’s browser.

# Introduction to blocks

Whilst the layout of the storefront is dictated by the theme, the displayed content is managed through blocks. This includes navigation (such as header and footer menus), promotional imagery, static text and HTML snippets. Each block can contain multiple items of different types, allowing for features like image carousels and mega menus.