For full information about this update and to get the version of DF4WP, see the post on the DataFlex for WordPress forum (Mike Peat 30-Oct-2017). Below is an extract from Mike’s 30th October post:
The plugin should, as before, be uploaded as a zip to your WordPress site (Dashboard –> Plugins –> Add New –> Upload Plugin –> Choose file … select dataflex4wordpress.zip … Install Now –> Activate Plugin).
The library workspace you should unzip, then use as a library from your app’s workspace, making the following changes (along with appropriate Use statements) to your app:
- cWebApp –> cWPWebApp
- Set psWPEncryptSecret to “whateverIsInSecretInTheDF4WPDashboard”
- Use WebResourceManager.wo –> Use WPWebResourceManager.wo // important for getting various pathing right
- cWebView –> cWPWebView
- cWebModalDialog –> cWPWebModalDialog
- cWebImage –> cWPWebImage
- cWebColumnImage –> cWPWebColumnImage
The latter two are only required if you are loading the images using the older technique of having them under the AppHTML directory and using a relative URL, rather than using the DownloadURL of the WebResourceManager technique, which is taken care of in WPWebResourceManager.wo.
In addition, when making reference to other local web-available resources (things you would normally load by relative URL from your AppHTML directory or subdirectories of that), amend the setting to be (FQUrl(ghoWebResporceManager, relativeURL)) rather than just relativeURL. This will dynamically replace relative URLs with fully qualified URLs (getting it right, I hope).
Read the plugin help: there are a couple of new shortcode settings: customjs and customcss (always use lowercase).
Start using DataFlex 4 WordPress (DF4WP) plugin
Everything you need to know about setting up and using DataFlex 4 WordPress beta is on the DF4WP website. To get started:
- See the DataFlex for WordPress samples working within the DF4WP site
- Try the DataFlex samples in your own WordPress site
- Embed your own DataFlex apps in a WordPress site
You can find out how others are using DF4WP on the DF4WP Forum.
If you need any help using DataFlex 4 WordPress, please contact us.