---
title: Displaying media library content on the live site
---

> 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).

You can use the **Media gallery** web part to display content of a media library on the live site.

## Putting the Media gallery web part on your web page

1. Open the **Pages** application.
2. Choose the page on which you want to place the web part.
3. Switch to the **Design** mode.
4. [Place](https://docs.kentico.com/k11/developing-websites/developing-websites-using-the-portal-engine/using-and-configuring-web-parts.md#adding-web-parts) the **Media gallery** web part to a **content area** of your choice. The **Web part properties** dialog box opens.
5. Under **Content**, specify the **Media library** to which you want to be able to upload files.
6. Under **Upload settings** turn the check-box on for the following properties:

   1. **Allow upload** - enables on-site upload of files.
   2. **Allow upload thumbnail** - enables on-site upload of file thumbnails.

> **Info:** Note that you **Allow upload thumbnail** works only when **Allow upload** is enabled as well. The Thumbnail that you upload is always attached to the file that you upload with it.

7. (Optional) If you are displaying items from a [secured media library](https://docs.kentico.com/k11/managing-website-content/configuring-the-environment-for-content-editors/configuring-media-libraries/media-libraries-security/securing-media-libraries.md), **Enable** the **Check file permissions** property.
8. Click **Save & Close**.

## Viewing the media library content using the Media gallery web part

Now that you inserted the **Media library** web part onto your page, visitors can use it to view the content of the media library.

1. Open the **Live site**.
2. Select the folder that you want to view in the web part.

![Media library displayed on the live site](https://docs.kentico.com/docsassets/k11/displaying-media-library-content-on-the-live-site/media_library_displayed_on_live_site.png "Media library displayed on the live site")

> **Info:** Note that whenever you resize an image that you inserted using a web part, the link to that image changes. Refer to [URLs of resized images](https://docs.kentico.com/k11/managing-website-content/configuring-the-environment-for-content-editors/configuring-media-libraries/urls-of-resized-images-in-media-libraries.md) for more information.
