# Share Pages as Template

Starting from **ONEWEB version 4.0.19.11**, Page Designer allows users to **save and share any page as a reusable template**.\
This feature helps teams standardize page layouts, speed up development, and reuse proven designs across pages, applications, and even environments.

Page Templates can be shared and reused for both **Web pages** and **Mobile pages**.

***

### Open Share Page Template

1. Open the page in **Page Designer**
2. Click the **Share** option from the Page Designer toolbar

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FtSl8jkS0L6iEMRCjtLjs%2Fimage.png?alt=media&#x26;token=9bf09e3f-ed86-4d97-9f18-354d5331be64" alt=""><figcaption></figcaption></figure>

***

### Ways to Share a Page Template

A page can be shared in **three different ways**, depending on how widely you want to reuse it.

***

### 1. Share Within the Same Application

This option allows the page template to be reused **only within the current application**.

#### How It Works

* Enable **“Share in this application only”**\
  \&#xNAN;*(Selected by default)*
* Click **Share**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FYgRGxjKlIRysJS2b0sI4%2Fimage.png?alt=media&#x26;token=14647152-1c64-4cda-b113-a37683b08ae3" alt=""><figcaption></figcaption></figure>

#### Use Case

* Reusing layouts across multiple pages
* Standard sections within a single app
* Maintaining consistency inside the same project

***

### 2. Share Publicly

This option allows the page template to be shared **with all users on the same ONEWEB server**.

#### How It Works

* Uncheck **“Share in this application only”**
* Click **Share**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F44jlt2A3oUpzcsWALIMV%2Fimage.png?alt=media&#x26;token=082fc1bf-d051-4078-b78f-118498e79a9d" alt=""><figcaption></figcaption></figure>

#### Important Notes

* Recommended for **on‑premise or dedicated servers**
* On shared cloud environments, typically used for **starter / demo templates**

***

### Use Shared Templates on Pages

To use a shared template (application‑level or public):

1. Open the target page
2. Click **Add Component**
3. Select **Page Templates**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FQliUKlSrRF2tlNlf6Y9T%2Fimage.png?alt=media&#x26;token=b277e334-ece9-4da6-9ec9-f3963801809c" alt=""><figcaption></figcaption></figure>

4. Browse available templates

* Includes **public templates**
* Includes **templates shared within the application**

5. Hover to preview
6. Drag & drop the template into the designer canvas

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FQTW6kOFNf2ftwt70eIwj%2Fimage.png?alt=media&#x26;token=ffee8216-5e70-4db4-9c92-e0a86d944c29" alt=""><figcaption></figcaption></figure>

***

### 3. Share Template as an Extension

This option allows you to package a page template as an **extension**, which can then be shared:

* Across applications
* Across environments
* Across servers

#### Step 1: Export Page as Extension

1. Open the **Share Page Template** dialog
2. Click the **Download** (export) icon

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FhF6o1XIqbT5hjYcQ2DZD%2Fimage.png?alt=media&#x26;token=cf319c05-d4fc-4678-b735-301ebabb6cb9" alt=""><figcaption></figcaption></figure>

3. Choose an **icon** for the extension (optional)

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FzVK37oTMCjbRt0qC7JCV%2Fimage.png?alt=media&#x26;token=2e5d81ca-57b9-4975-a6ea-db42c05ddd5a" alt=""><figcaption></figcaption></figure>

The template extension will be downloaded and can be shared with other ONEWEB users.

***

### Install and Use Template Extension

#### Step 2: Install Template Extension

1. Open **Page Designer**
2. Go to **RESOURCES → Extensions**
3. Click **Add more extension**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FZBPqAlIhsd6UefZtjEdp%2Fimage.png?alt=media&#x26;token=1f0e8ed1-5e58-41dc-8e12-094a5519cfff" alt=""><figcaption></figcaption></figure>

4. Select the template extension file
5. Click **Install**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FYo7EHt391cHFGv7qWdyI%2Fimage.png?alt=media&#x26;token=8ce9290c-7c35-4467-a090-ceb2b4c18e1a" alt=""><figcaption></figcaption></figure>

Once installed, the extension appears in the Extensions list.

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FJ2KqvrOFP3A57h15tS7I%2Fimage.png?alt=media&#x26;token=fc822936-592f-4e56-87cc-6cf02573fdf9" alt=""><figcaption></figcaption></figure>

***

#### Step 3: Use Template Extension on Page

1. Open a page
2. Click **Add Component → Page Templates**

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2Ft5XEPg9EWXBKMlmX8Ck3%2Fimage.png?alt=media&#x26;token=a18b25c9-190e-49c5-b2d1-8a8d2aed8bf6" alt=""><figcaption></figcaption></figure>

3. Switch to the **Extension** tab
4. Preview and drag the extension template onto the page

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FGjLAUHUdrgvuxD1Pn8EO%2Fimage.png?alt=media&#x26;token=7cc5c1a1-ef62-44d8-b046-0a634585130e" alt=""><figcaption></figcaption></figure>

***

#### Overwrite Confirmation

Using an extension template will **overwrite the current page**.

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2F2VgajUIaT94ay4Qmzt7k%2Fimage.png?alt=media&#x26;token=02842c6b-1db9-42df-ba1b-87993888b64c" alt=""><figcaption></figcaption></figure>

After confirmation, the template is applied to the page.

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FKQUyNYgIUeMa1F2iE63u%2Fimage.png?alt=media&#x26;token=3e2d064c-dce7-4674-a6fd-4841ed581e1f" alt=""><figcaption></figcaption></figure>

***

### Design Perspective

As part of **Page Designer best practices**:

* Use templates for **repeatable page patterns**
* Prefer application‑level templates for controlled reuse
* Use extensions for **cross‑project standardization**
* Always preview templates before applying
* Be cautious with overwrite behavior

Sharing pages as templates increases **reuse, consistency, and development speed** across ONEWEB projects.


---

# 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://docs.onewebstack.com/oneweb-platform-th/building-apps/ui-page-designer/ux-ui-components/pages/page-features/share-pages-as-template.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.
