---
title: "Add or duplicate a snippet"
slug: "add-or-duplicate-a-snippet"
abstract: "Add and reuse collections of page items."
---
# Add or duplicate a snippet

In the **Project** panel, the page items on your InDesign pages are arranged in snippets ![25646EF40CB34F9CA51E6F12C792A671.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/25646EF40CB34F9CA51E6F12C792A671.png). Snippets contain the InDesign page items such as text frames, images, shapes, and so on.

A page in the project structure can contain one or more snippets. In the **Project** panel, page items that are referenced from Sitecore content items have the content and field reference in parentheses.

In the following screenshot, the Hotel snippet items (image, description, and title items) are content items fetched from Sitecore.

![9EB239036F34448D871BE040CBF9C154.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/9EB239036F34448D871BE040CBF9C154.png)

Snippets allow you to arrange your InDesign content in the project structure. For example, you can use a snippet with text frames and a shape to present a particular section of your document.

![C2D50C8FD4EC42D0A461A3B5B36F7E7F.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/C2D50C8FD4EC42D0A461A3B5B36F7E7F.png)

This topic outlines how to:

- [Add a snippet](https://doc.sitecore.com/xp/en/users/print-experience-manager/add-or-duplicate-a-snippet.html#UUID-cd6f2f1a-4bc2-0d81-82d9-9da36b03601d_id__Add_a_snippet "Add a snippet")
- [Duplicate a snippet by copying and pasting](https://doc.sitecore.com/xp/en/users/print-experience-manager/add-or-duplicate-a-snippet.html#UUID-cd6f2f1a-4bc2-0d81-82d9-9da36b03601d_id__Duplicate_a_snippet "Duplicate a snippet by copying and pasting")
- [Duplicate a snippet in the Project panel](https://doc.sitecore.com/xp/en/users/print-experience-manager/add-or-duplicate-a-snippet.html#UUID-cd6f2f1a-4bc2-0d81-82d9-9da36b03601d_id__Duplicate_a_snippet_1 "Duplicate a snippet in the Project panel")
- [Create a master snippet](https://doc.sitecore.com/xp/en/users/print-experience-manager/add-or-duplicate-a-snippet.html#UUID-cd6f2f1a-4bc2-0d81-82d9-9da36b03601d_id__Create_and_apply "Create and apply a master snippet")

<details>
<summary><h2>Add a snippet</h2></summary>

You can add snippets to your page structure by simply dragging items from your InDesign page to the page in the **Project** panel.

To add a snippet to a page:

- Select a (group of) items on your InDesign page and drag them to a page in the **Project** panel.

    ![0B1FEE3B4ECC4C9E90D4A39F5C18A209.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/0B1FEE3B4ECC4C9E90D4A39F5C18A209.png)

    The items are added to the project structure in a new snippet. In the following screenshot, two page items are referenced from Sitecore, and the rectangle is a shape added in InDesign.

    ![8C3F6DA051AC49D6B029A04231DE5981.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/8C3F6DA051AC49D6B029A04231DE5981.png)

    You can rename the snippet by right-clicking it. You can [assign a different Sitecore content item](https://doc.sitecore.com/xp/en/users/print-experience-manager/add-sitecore-data-to-indesign-pages.html "Add Sitecore data to InDesign pages") to the snippet by dragging the Sitecore content item from the **Content** panel to the snippet in the **Project** panel.

</details>

<details>
<summary><h2>Duplicate a snippet by copying and pasting</h2></summary>

If you quickly want to reuse a snippet on your InDesign page, you can copy and paste the snippet on your InDesign page.

To duplicate a snippet by copy and paste:

1. In the **Project** panel, double-click the snippet that you want to copy. All snippet items are now selected on the InDesign page.

    ![CA61D66B5F764137B000E2D21F32BF1E.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/CA61D66B5F764137B000E2D21F32BF1E.png)

2. On your InDesign page, copy and paste the frames and position them on the page.
3. Drag the frames from the InDesign page to the page item in the **Project** panel to add them to the project structure.

    ![055FF6161EAC4C209C4003FA35DA4146.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/055FF6161EAC4C209C4003FA35DA4146.png)

    A new snippet is added to the page. Right-click the snippet to rename it.

    ![7D2EF89E7BFB49B88D314CCE9BB11F5E.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/7D2EF89E7BFB49B88D314CCE9BB11F5E.png)

    You can now assign a different content item to the snippet by dragging it from the **Content** panel to the snippet in the **Project** panel.

</details>

<details>
<summary><h2>Duplicate a snippet in the Project panel</h2></summary>

If you want to duplicate a snippet more than once, it is convenient to duplicate it in the **Project** panel.

To duplicate a snippet in the **Project** panel:

1. In the **Project** panel, navigate to the snippet that you want to duplicate and click **Duplicate the selected item**.

    ![16FED77328454E7EA1794CC28F65579B.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/16FED77328454E7EA1794CC28F65579B.png)

2. In the dialog box, click **Yes** to include the child items.
3. In the **Duplicate** dialog box, enter the number of duplications that you need and click **OK**.

    In the following screenshot, the snippet is duplicated four times.

    ![F3D2BA30499946E2B3CDEF24AC3B551A.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/F3D2BA30499946E2B3CDEF24AC3B551A.png)

    Now you can rename the snippets and assign different content items to them. To work on the layout of the new snippets, you first need to load the page.

</details>

<details>
<summary><h2>Create and apply a master snippet</h2></summary>

If you want to reuse a snippet in different documents, you can use a master snippet to add the snippet to different documents from the **Libraries** panel.

1. In the **Project** panel, select the snippet item and drag it to the appropriate folder in the Snippets library in the **Libraries** panel.

    ![85BDD36FFB9F4ADCBB6FA90B52A68ABF.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/85BDD36FFB9F4ADCBB6FA90B52A68ABF.png)

    The page snippet is saved to the selected folder as a new master snippet where it is available for later usage.

2. To add a page snippet based on a master snippet, in the **Libraries** panel, select the master snippet and drag it to the page directly or drag it to the page in the **Project** panel.

    You can adjust the snippet without changing the master snippet.

    ![20177B101E204C4CBC07F7BCB4C781B9.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/print-experience-manager/images/20177B101E204C4CBC07F7BCB4C781B9.png)

</details>