Search code examples
androidiosiphoneplonediazo

Mobile app marker for Plone / Diazo


I'd like to consume some of my Plone site content on my mobile app (iPhone and Android), and potentially use Diazo to deliver leaner content for the mobile app.

How can i add a marker that indicates i am coming from the mobile app that i can then use in Diazo to deliver a custom set of <rules>?

I dont mind if the lean content can be accessed publicly or on non-mobile eg if this is achieved via a special URL parameter like ?app=iPhone or something...

Any ideas? Cheers :)

Btw the solution doesn't need to necessarily be Diazo i just thought that might be neater... eg i could instead write lean views for mobile but seems a lot of work for each page i want to consume on the app.

Also have looked at plone.api.json which is great for standard Plone object content but doesnt do my custom dexterity content types out of the box (of which there are a lot).


Solution

  • Have you seen zettwerk.mobiletheming? It allows you to define a different theme for a different url - so you can provide two (diazo) themes for one page. There is also an example (jquery.mobile based) theme which you can try: zettwerk.mobile.

    Also check the provided screencasts to see it in action.