Get Reference Items
You can get a reference item for a content type with a reference data field that refers to another content type.
For example, the Author
field in the Blog-Post content type is a reference to the Author content type. In the content layout for Blog-Post, contentClient.getItems()
associates the details of the Author reference item with the current Blog-Post item .
var author_id = this.contentItemData.data['starter-blog-post_author'].id;
var ids = [author_id];
// Get the author reference item
contentClient.getItems({
'ids': ids
}).then(function (items) {
// Use the item
}, function (error) {
// Handle error
});