Page 1 of 1

External Data sources (WordPress pages)

Posted: Mon Mar 31, 2014 3:08 pm
by mariusz zasadniczo

Hi,
I'm building an application and I'd like to implement external data and display it in app.

This data is edited by editor without html knowledge. So I built a long table in wordpress and try to show it up...

I was wondering about displaying wordpress page (that's tables) in an iframe of app page... Is there any other simple way to display external, often changeable content in an app?

Thanks!
Kind regards
M


External Data sources (WordPress pages)

Posted: Mon Mar 31, 2014 5:11 pm
by Maryna Brodina

Hello!
If you can retrieve not entire page, but just content you need to show - you can show it in app the way you need. To retrieve content only you can search for API in cms, or if cms doesn't support corresponding API, you can parse page data and form content this way (in server code or generic service), but it's more complicated way which requires JS knowledge.
If you are not success with retrieving content, show entire page in iframe.


External Data sources (WordPress pages)

Posted: Mon Mar 31, 2014 5:14 pm
by mariusz zasadniczo

Hi Maryna, Thank you.
Could you please provide some hints for that parsing?
Have you ever done any WordPress integration as a CMS to the application data?

Thanks
M


External Data sources (WordPress pages)

Posted: Mon Mar 31, 2014 7:29 pm
by Maryna Brodina

"some hints for that parsing" - unfortunately there is no examples. The point is that you retrieve entire image, then work with page content as with string - delete unnecessary and leave what you need. All content which is left convert to json, xml.
"ever done any WordPress integration as a CMS to the application data" - we haven't done integration, but there should be a lot of plugins available for WP which could help to implement REST API on your site.


External Data sources (WordPress pages)

Posted: Tue Apr 01, 2014 6:23 am
by mariusz zasadniczo

Hi Maryna,
Thank you.

I ran JSON API and I received data from my website and I have created the 'service'.
But I have no idea how to parse and insert the data from 'content' parameter into the app page.

I've added a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a as a user to to project: http://appery.io/app/project/5e8d6a62...

Could you please point me how to insert content from program1206 service into 'program' app page?

I've added 'service to a page'
http://docs.appery.io/documentation/r...
but nothing appears on the app page.

Thank you!
Kind regards.


External Data sources (WordPress pages)

Posted: Tue Apr 01, 2014 1:15 pm
by mariusz zasadniczo

Hi Maryna - does the application cache JSON automatically?


External Data sources (WordPress pages)

Posted: Tue Apr 01, 2014 1:58 pm
by Kateryna Grynko

Mariusz,

[quote:]does the application cache JSON automatically?[/quote]
No, doesn't cache, if this JSON is received from a service.

[quote:]I have no idea how to parse and insert the data from 'content'[/quote]Could you please post screenshots of service request and response parameters?


External Data sources (WordPress pages)

Posted: Tue Apr 01, 2014 2:00 pm
by mariusz zasadniczo

"Could you please post screenshots of service request and response parameters?" I've already sent you an email with screenshots.
Thanks.


External Data sources (WordPress pages)

Posted: Tue Apr 01, 2014 10:45 pm
by Igor

Answered to you directly.


External Data sources (WordPress pages)

Posted: Wed Apr 02, 2014 5:34 am
by mariusz zasadniczo

I have no reply from you ;(