Linux 软件免费装
Banner图

DriveWorks Shortcode - Form Embed

开发者 driveworks
更新时间 2022年2月17日 01:07
PHP版本: 5.6 及以上
WordPress版本: 5.9
版权: GPLv2 or later
版权网址: 版权信息

标签

embed integration shortcode project driveworks driveworks live driveapp integration theme

下载

1.0.0 1.0.1

详情介绍:

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: Optionally provide: 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.

屏幕截图:

  • Enter the shortcode into text content.
  • Enter connection details and other configuration options.
  • 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

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:

更新日志:

1.0.1 1.0.0