Title: DriveWorks Shortcode &#8211; Form Embed
Author: DriveWorks
Published: <strong>2022 年 1 月 28 日</strong>
Last modified: 2025 年 4 月 24 日

---

搜尋外掛

![](https://ps.w.org/driveworks-shortcode-form-embed/assets/banner-772x250.png?rev
=2671398)

![](https://ps.w.org/driveworks-shortcode-form-embed/assets/icon.svg?rev=2668241)

# DriveWorks Shortcode – Form Embed

 由 [DriveWorks](https://profiles.wordpress.org/driveworks/) 開發

[下載](https://downloads.wordpress.org/plugin/driveworks-shortcode-form-embed.1.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/driveworks-shortcode-form-embed/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/driveworks-shortcode-form-embed/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/driveworks-shortcode-form-embed/#developers)

 [技術支援](https://wordpress.org/support/plugin/driveworks-shortcode-form-embed/)

## 外掛說明

This plugin enables the shortcode **driveworks_embed**, to quickly embed either 
a DriveWorks Project or DriveApp into any content.

It uses pre-written [DriveWorks Client SDK](https://webapi.driveworkslive.com/help/client/)
functions to automatically create a client, login, start a Specification / DriveApp
and render the Form.

> Note: this plugin _requires_ an external [DriveWorks Live Integration Server](https://docs.driveworkspro.com/Topic/IntegrationThemeLive)
> to be configured and running, which allows connections from your WordPress domain.

**To embed a Form**, simply provide the following:

 * **server_url** – The URL of your Integration Theme server. Used to load the client
   library, and create a client connection.
 * **group_alias** – The alias of the Group to connect to.
 * Either:
    - **project_name** – The name of the Project to render
    - **drive_app_alias** – The name of the DriveApp to render

Optionally provide:

 * **ping_interval** – The interval (in seconds) at which the server is automatically
   sent a request. Useful to keep a session alive without manual interaction. Disable
   by setting to `0`, or excluding this setting.
 * **height** – The height of the container that Form is rendered into, including
   the unit. Useful if the Form does not have a natural height. Examples: `800px`,`
   10em`, `75vh`.

**Examples**

Render a Project:

    ```
    [driveworks_embed server_url="https://api.my-server.com" group_alias="MyGroupAlias" project_name="MyProject"]
    ```

Render a DriveApp, with a fixed height, that pings every 60 seconds:

    ```
    [driveworks_embed server_url="https://api.my-server.com" group_alias="MyGroupAlias" drive_app_alias="MyDriveApp" height="700px" ping_interval="60"]
    ```

**How it works?**

The shortcode is replaced with the markup required to embed and render a DriveWorks
Form.

A pre-written script using standard methods from the [DriveWorks Live Client SDK](https://webapi.driveworkslive.com/help/client/),
running on your own server, performs a login and renders the configured Form.

The script will not send any credentials during login, so **a default user must 
be specified** in **DriveWorksConfigUser.xml**.
 If a default user is not set server-
side, the connection will not be authorized.

It is important to ensure that your DriveWorks Integration Theme server is running
correctly.
 You can check this by accessing the configured server_url in a browser.

Clear warnings will be shown if any errors are made in the config or during connection.

For alternative examples on how to render a DriveWorks Form, see our public [Client SDK Examples](https://webapi.driveworkslive.com/home.html)
and our [Official GitHub](https://github.com/driveworks).

## 螢幕擷圖

[⌊Enter the shortcode into text content.⌉⌊Enter the shortcode into text content.⌉[

Enter the shortcode into text content.

[⌊Enter connection details and other configuration options.⌉⌊Enter connection details
and other configuration options.⌉[

Enter connection details and other configuration options.

[⌊Save and view the Form rendered in your content.⌉⌊Save and view the Form rendered
in your content.⌉[

Save and view the Form rendered in your content.

## 常見問題集

### Is this plugin free?

Yes – this plugin is free. However, it requires an existing DriveWorks Live Integration
Theme server to be setup and running – which it will then connect to. For more information
and configuration guidance, see the official [Integration Theme documentation](https://docs.driveworkspro.com/Topic/IntegrationThemeLive)

### Can I use multiple embeds on one page?

Yes – however they will **all share the same client library script**. Only **1**
version of the library can be loaded on the same page. The first server_url found
in the content will be used to load the client library script.

Multiple Integration Theme _servers_ can be connected to and embedded at the same
time, but please note that only the first instance of the library will be loaded.
You should ensure all Forms can run successfully on the shared version of DriveWorks.

Embeds with the same server_url will re-use the same client for reduced overhead.

### Why won’t my embed load?

There are various reasons an embed may not load correctly.

Helpful error messages are shown for common issues – when logged into WordPress 
as an admin user. The browser developer console (F12) will reveal more details regarding
any errors encountered.

To troubleshoot, ensure that:

 * The configuration in your shortcode is correct.
 * Your Integration Theme server is configured correctly in **DriveWorksConfigUser.
   xml**
 * Your Integration Theme server is running, and allows connections from this site.
 * The Group Alias has a default username and password set in **DriveWorksConfigUser.
   xml**

For more setup instructions, see:

 * [Selecting the Integration Theme](https://docs.driveworkspro.com/Topic/IntegrationThemeSelect)
 * [Configuring the Integration Theme](https://docs.driveworkspro.com/Topic/IntegrationThemeSettings)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈DriveWorks Shortcode – Form Embed〉的開發相關工作。

參與者

 *   [ DriveWorks ](https://profiles.wordpress.org/driveworks/)

[將〈DriveWorks Shortcode – Form Embed〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/driveworks-shortcode-form-embed)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/driveworks-shortcode-form-embed/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/driveworks-shortcode-form-embed/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/driveworks-shortcode-form-embed/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/driveworks-shortcode-form-embed/)。

## 變更記錄

#### 1.0.2

 * Fixed: Undefined variable warnings with WP_DEBUG enabled.

#### 1.0.1

 * Fixed: Grammatical errors and markdown syntax

#### 1.0.0

 * Initial release – with Project & DriveApp support

## 中繼資料

 *  版本 **1.0.2**
 *  最後更新 **1 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/driveworks-shortcode-form-embed/)
 * 標籤:
 * [driveworks](https://tw.wordpress.org/plugins/tags/driveworks/)[embed](https://tw.wordpress.org/plugins/tags/embed/)
   [integration](https://tw.wordpress.org/plugins/tags/integration/)[project](https://tw.wordpress.org/plugins/tags/project/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/driveworks-shortcode-form-embed/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/driveworks-shortcode-form-embed/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/driveworks-shortcode-form-embed/reviews/)

## 參與者

 *   [ DriveWorks ](https://profiles.wordpress.org/driveworks/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/driveworks-shortcode-form-embed/)