We have a website that stores content for both desktop and mobile app. Mobile app retrieves content via Umbraco REST Api.
As content on each page could vary too much for desktop and app, we've come up with the only solution - keeping separate documents per each version. But this is very hard to maintain for content managers.
I am not sure it applies to your situation, but one "traditionnal" way to do is to apply alternative templates to a content page via an "alttemplate" parameter in its url.
So, basically, calling your page with the classic url
I was involved in projects like you described and would say that there no 100% best solution. But I would prefer to manage all data in one place of course, that's why I see better architecture like that:
Manage all data from Umbraco backend.
Store all data for web pages and mobile apps in Umbraco nodes, but I think it's good to have custom controls for displaying and managing mobile apps data.
Just a few thoughts:
1) All nodes have to be pages and store all data related to this page in Umbraco node.
2) Custom not related to pages data - keep it in custom tables and manage via custom control or even custom section in Umbraco backend.
Could you clarify a bit: Did you split nodes between Desktop and App (having separate nodes for desktop and app), or you store all data (for both Desktop and App) on a single node (perhaps on different tabs)?
How to approach mobile app content on Umbraco?
We have a website that stores content for both desktop and mobile app. Mobile app retrieves content via Umbraco REST Api.
As content on each page could vary too much for desktop and app, we've come up with the only solution - keeping separate documents per each version. But this is very hard to maintain for content managers.
Any known solutions for the problem?
Hi Ivan,
I am not sure it applies to your situation, but one "traditionnal" way to do is to apply alternative templates to a content page via an "alttemplate" parameter in its url.
So, basically, calling your page with the classic url
will display it using the template selected when creating you document, and calling it with an alttemplate parameter like this;
would display the page with the specific mobile Template.
That way you can keep one content node and display it differently on desktop or mobile.
I'm not sure this can be achieved through the REST API though, but maybe it can give you some inspiration ;-)
Hope it helps!
Cheers,
Michaƫl.
Hi Ivan
I was involved in projects like you described and would say that there no 100% best solution. But I would prefer to manage all data in one place of course, that's why I see better architecture like that:
Just a few thoughts:
1) All nodes have to be pages and store all data related to this page in Umbraco node.
2) Custom not related to pages data - keep it in custom tables and manage via custom control or even custom section in Umbraco backend.
Hope here is something interesting for you, Ivan.
Thanks,
Alex
Hi Alex,
Could you clarify a bit: Did you split nodes between Desktop and App (having separate nodes for desktop and app), or you store all data (for both Desktop and App) on a single node (perhaps on different tabs)?
Hi Ivan
I would prefer to store all data (for both Desktop and App) on a single node (perhaps on different tabs)
And I would like to store data in Umbraco nodes only if it should be a page for a desktop.
It's better do not create Umbraco node for objects with mobile data only.
Thanks,
Alex
Alex,
Ok, I see. Thanks for sharing your experience!
is working on a reply...