Learner
Learner

Reputation: 810

Hybrid Application Development in Sitecore

Can we develop Hybrid Applications with Sitecore using HTML5 And Jquery ? I have found the Javascript API for Sitecore , but it basically deals with the website development in Sitecore using Javascript and accessing the native Features of the device. Additionally we do have Android and iOS SDKs also for Native Development. But do we have any way out for Hybrid Applications as well ?

Upvotes: 0

Views: 396

Answers (2)

Derek Dysart
Derek Dysart

Reputation: 1396

You can definitely do this, you just have to change your perception of "presentation". Under most models, you develop a website back ended by Sitecore. The templates are your data model, layouts and sub-layouts are your presentation logic.

Nothing is stopping you from creating MVC controllers with actions that return JSON based on data obtained from Sitecore (in versions after 6.6 you do have to do a bit of work to make sure url routes go to your controller and not Sitecore.) The benefit to this is your front-end logic is consuming a specialized data transfer object as opposed to trying to transform native Sitecore objects into something usable. The big challenge is many of your controller actions are going to need to take Sitecore id's as parameters to aid in retrieving information from the Sitecore database.

I've taken this approach on several projects, where the "fixed" landscape of the website was built using "traditional" Sitecore techniques, and JQuery AJAX calls got JSON from MVS controller actions that we're then bound to HTML templates (either JQuery templates, or other libraries such as Handlebars)

Upvotes: 0

nsgocev
nsgocev

Reputation: 4470

If you are using Sitecore 6.5 you can use the Sitecore Item Web API 1.0. If you are using 6.6 and higher you can use the Sitecore Item Web API 1.2. Also you can always develop your own services on top of sitecore and use them in your Hybrid Applications.

Upvotes: 1

Related Questions