# Dynamic Folders

### Dynamic Mode

Dynamic Folders enable modules to point to a folder location that adjusts based on user-specific data, instead of relying on a static folder. This feature is ideal for securely sharing documents from your cloud account with individual users or clients by restricting access to their own unique folder.

<table><thead><tr><th width="187">Setting</th><th width="166">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>Dynamic Mode</strong></td><td><code>Off</code></td><td>Use a static folder as select on the Content tab.</td></tr><tr><td></td><td><code>Manual mode</code></td><td>Link the users manually to their Personal Folder</td></tr><tr><td></td><td><code>Auto mode</code></td><td>Let the plugin automatically manage the dynamic folders. They will be placed in the folder selected in the Content tab.</td></tr></tbody></table>

#### Auto mode

<table><thead><tr><th width="187">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name Template</strong></td><td><p>Template name of the Dynamic Folder. This can contain sub folders.<br></p><p><strong>Example:</strong><br>Set it to<code>%user_login%</code> if you want the module to display the folder <code>/{Start Folder}/{%user_login%}</code>. Each user will get their own folder named with the user login.</p></td></tr></tbody></table>

{% hint style="success" %}
You can use [Placeholders ](https://wpcloudplugins.gitbook.io/docs/developers/placeholders)in this setting.
{% endhint %}

<table><thead><tr><th width="187">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Template Folder</strong></td><td>Dynamic Folders can be automatically generated and prefilled with documents from a template folder. When a new folder is created, the selected template folder’s contents are automatically copied into it, ensuring a consistent setup with pre-defined documents for each user.</td></tr><tr><td><strong>Give Access to Root Folder</strong></td><td>Select which user roles should not be given a dynamic folder, but should have access to the top folder itself.</td></tr><tr><td><strong>Quota</strong><br><strong>(</strong>OneDrive, Dropbox, Box)</td><td>Set maximum size of the Dynamic Folder (e.g. 10M, 100M, 1G). When the Upload function is enabled, the user will not be able to upload when the limit is reached. Leave this field empty or set it to -1 for unlimited disk space.</td></tr></tbody></table>

### Open Sub folder

Open a specific folder inside the selected folder. This can be useful in combination with the Dynamic Folders feature. It allows you to create a Dynamic Folder while provide access to a specific sub folder.

<table><thead><tr><th width="187">Setting</th><th>Description</th></tr></thead><tbody><tr><td><strong>Sub folder</strong></td><td>Sub folder (path) to open</td></tr></tbody></table>

{% hint style="info" %}
If you want to be able to send notifications to the owner of this folder the template should contain `%user_email%`.
{% endhint %}


---

# 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://wpcloudplugins.gitbook.io/docs/modules/module-configurator/dynamic-folders.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.
