Skip to content
Home » News » 2017 News » DataFlex 4 WordPress beta version for DataFlex v19

DataFlex 4 WordPress beta version for DataFlex v19

  • by

Mike Peat has released a beta version of the DataFlex 4 WordPress plugin for use with DataFlex v19.0. In addition to changes required to work with DataFlex 2017, this beta version of DF4WP provides two new pipe-separated settings for applying custom CSS and JavaScript:

  • customjs
  • customcss

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 … 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:

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.