PDA

View Full Version : read a parameter from url of wordpress and use it within the Dataflex application



franco
16-Aug-2016, 05:01 AM
Hello
I would like to know if using the dataflex plug in it is possible to do something like follow:

open the wordpress page in this way (located in some Linux server)

www.mywordpressesitelinux.com/mypage.html?param=something

where in mypage.html there is some contents and also the tag[df4wp-webapp apppath="//mydataflexapp.com/Myappdataflex"]

Can Myappdataflex read the param using Get UrlParameter "param" to somemyvar ?

regards
Franco

chuckatkinson
16-Aug-2016, 07:57 AM
If you webpublish a property in your web app you can set the property with the shortcode. In fact you can set and pass any of the existing web app properties in the short code, like piHeight etc.

Mike Peat
16-Aug-2016, 09:33 AM
Franco

No, I am afraid not, because the param is received by the WordPress page, not the WebApp.

I think it might be possible to modify the plugin to capture the query string (or the things passed on it) and pass them on to the WebApp, but it doesn't do that ATM.

Mike

Mike Peat
16-Aug-2016, 09:38 AM
Franco

In fact, if you feel brave and are not afraid of a little PHP, you could possibly do that sort of thing yourself. If you are interested, I will explain further, but if you look at my Berlin EDUC presentation (https://docs.google.com/presentation/d/1OZjyPbwrMQwDPr_6XTw_2GPrGTNDq2and9Jv48wLmos/edit?usp=sharing), the beginnings of how you might do it are in there (slides 23-28).

Mike

franco
16-Aug-2016, 04:49 PM
Hello Mike,
yes I saw the slide well done, I think to can try to modify the php code to add this features, I know enough the Php code.
just need only to can load my dataflex app into wordpress linux :rolleyes: that still is my main problem to solve

Regards Franco