Deploy Caspio DataPages in WordPress
A new and improved version of the Caspio WordPress plugin is available now at:
http://wordpress.org/extend/plugins/caspio-deploy2/
The Caspio Deploy2 plugin enables shortcode placeholders to streamline the deployment of Caspio applications on WordPress. In WordPress, a shortcode is a placeholder you add to a page or post that is replaced at runtime with custom content. In our new plugin, shortcodes can be used for SEO deployment, as well as embedding the AJAX widget used to display Caspio forms. Caspio Deploy2 replaces the earlier Caspio Deployment Control plugin (which did not use shortcodes).
NOTE: Plugins are only applicable to web sites using the WordPress.org software. Plugins are not permitted at WordPress.com for various security reasons. Read more about this at http://en.support.wordpress.com/plugins/. Therefore WordPress.com users cannot use shortcode and SEO deployment methods however they can still use standard deployment methods including Embedded, Direct Link, and Frame. If you are WordPress.org user, continue reading this article.
Every Caspio application has a unique address at caspio.com, but most Caspio users want to embed these applications in their own websites. Caspio provides code snippets you can paste into any web page, but pasting JavaScript or PHP code into the WordPress editor is awkward. The WordPress editor can easily scramble the code you are trying to publish.
The Caspio Deploy2 plugin lets you instead paste the DataPage URL into a [caspio] shortcode format. The plugin then generates the required JavaScript code for embedded deployment or calls the PHP functions used for SEO deployment. This makes it easier to blend the web content management virtues of WordPress with the cloud database power of Caspio.
See the screenshots below for an illustration of how to obtain the Caspio DataPage URL for an application by toggling the DataPage deployment wizard to "Direct from Caspio".
You can then use any of the following shortcode formats:
Embed a Standard Datapage
DataPages can be easily deployed by using the Direct from Caspio URL and placing it between Caspio shortcode markers:
Embed a DataPage Using SEO Deployment
In order to deploy a Caspio Bridge SEO DataPage in WordPress, you must have:
- Caspio Bridge account with activated SEO deployment and properly configured DataPage
- Installed and activated the Caspio Deploy2 plugin for WordPress.
The deploy code is slightly different from above. For SEO deployment the URL is included as an attribute. Here is an example:
If you omit the style parameter, the plugin uses "l" (lower case "L") as the default.
How to Find the Required Codes

For SEO Deployment, you can find the style parameter by looking at the code snippet for SEO Deployment to a PHP website. Style is the last parameter of the dpload function:
<?php require_once('http://b4.caspio.com/scripts/dpload.txt');
dpload('http://b4.caspio.com/','5F422000c3f2d8h4d3c9f4b9g9e0','l');?>
<!– End Caspio Deploy Code –>
Download Caspio Deploy2 for WordPress now at http://wordpress.org/extend/plugins/caspio-deploy2/ and let us know what you think.
