Skip to content

Instantly share code, notes, and snippets.

@islaytitans

islaytitans/GetFields.js Secret

Created Jul 29, 2015
Embed
What would you like to do?
Sitecore Hackathon GetFields
GetFields: function () {
var datasource = this.DataSource;
var querystring = this.GetQueryString();
var itemid = querystring["itemid"];
var fieldService = new entityService({
url: "/sitecore/api/ssc/DevToolKit-Controllers/SitecoreItem"
});
var result = fieldService.fetchEntity(itemid).execute().then(function (item) {
datasource.viewModel.items(item.Fields.underlying);
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment