---
title: Creating a document library
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

This page explains how to create a document library on your website. We will create a sample page with two **Document library** web parts, each displaying files from a different folder.

The first step when creating a document library is to choose a location in the site's content tree where the files will be stored. A single document library web part can display documents from only one location. As we want two separate libraries on a single page, we will create a page in the content tree where two **Document library** web parts will be placed. Under the page, we will create two separate folders where the actual files will be stored.

1. Open the **Pages** application.
2. Select the root of the content tree.
3. Click **New** ().
4. Choose the **Page (menu item)** page type.
5. Type _**My document library**_ into the **Page name** field and choose the **Create a blank page** option.
6. Click **Save**.

Next, create the folders:

1. With the new page selected, click **New** ().
2. Choose the **Folder** page type.
3. Type _**My images**_ as the **Page name**.
4. Click **Save**.
5. Repeat the same once again to create another folder named _**My Office documents**_.

You now have a page and two child folders.

![Parent page and folders in the content tree](https://docs.kentico.com/docsassets/k82/creating-a-document-library/Document_Library_Docs.png "Parent page and folders in the content tree")

Now add the document libraries to the page:

1. Select the **My document library** page.
2. Switch to the **Design** tab.
3. [Add](https://docs.kentico.com/k82/developing-websites/developing-websites-using-the-portal-engine/using-and-configuring-web-parts.md) the **Document library** web part.
4. Configure the web part's properties:
   - **Library path**: /My-document-library/My-images
   - **HTML Envelope -> Content before**: My images
5. Click **OK**.
6. Add another **Document library** web part to the page. Set the following properties:
   - **Library path**: /My-document-library/My-Office-documents
   - **HTML Envelope -> Content before**: My Office documents
7. Click **OK**.

You can now see the document library web parts on the **Design** tab.

![Adding the document library web parts on the Design tab](https://docs.kentico.com/docsassets/k82/creating-a-document-library/Document_Library_Design.png "Adding the document library web parts on the Design tab")

The document libraries are now configured and ready to be used by live site users. Please proceed to the [Managing files in document libraries](https://docs.kentico.com/k82/intranet-features/document-library/managing-files-in-document-libraries.md) page to learn how live site users can upload and manage document library files.
