-
-
Save islaytitans/17165f2d17bbabb872fc to your computer and use it in GitHub Desktop.
Sitecore Hackathon GetFields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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