# Shortcode

To use shortcode to output a document library in your page builder plugins, please follow these steps:

### Step 1: Navigate to Documents menu

Go to **Documents** menu and choose "Add new" option.

<figure><img src="/files/8vmNATgsKPI6zZQCxxxn" alt=""><figcaption><p>Add new shortcode</p></figcaption></figure>

### Step 2: Set up your document/file list

Add your settings for your document library layouts and styles.

<figure><img src="/files/EjWwLNllxeY4TKGHoBHh" alt=""><figcaption><p>Customize your document layouts</p></figcaption></figure>

### Step 3: Publish the shortcode&#x20;

Click on "Publish" button to generate the shortcode.

<figure><img src="/files/HsxObiOvbGRvU9VqOXm3" alt=""><figcaption></figcaption></figure>

### Step 4: Copy and Paste the shortcode

<figure><img src="/files/nTIOslcvtk5we678hy8e" alt=""><figcaption></figcaption></figure>

Using the generated shortcode, you will be able to embed your document library into any "Shortcode" element of page builders, website builders, or theme's advanced editors.

These integrations include:

* Elementor
* DIVI by elegantthemes
* WPBakery page builder
* Visual Composer
* Flatsome theme
* Enfold theme's advanced editor
* Oxygen builder&#x20;

{% hint style="success" %}
Note: With version 3, you can now easily adjust your document layouts and styles by clicking the Edit button and modifying the content directly. There's no need to create a new shortcode.
{% endhint %}

<figure><img src="/files/h48vPPq1BagID61d8RTD" alt=""><figcaption></figcaption></figure>

[See how to do it in Elementor →](https://ninjateam.gitbook.io/filebird/addons/filebird-document-library/shortcode/embed-in-elementor)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ninjateam.gitbook.io/filebird/addons/filebird-document-library/shortcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
