跳到内容

DriveWorks Shortcode – Form Embed

v1.0.2

DriveWorks · 2022年1月28日 上架

Use shortcodes to embed DriveWorks Projects or DriveApps.

正在使用
20+
评分
暂无
累计下载
1,970
最近更新
2025年4月24日
需要 WordPress 4.0+已测试到 6.8.13PHP 5.6+

贡献者

截图

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.
Save and view the Form rendered in your content.
Save and view the Form rendered in your content.

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 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 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, 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 and our Official GitHub.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums