Hello, we're developing on SCA Kilimanjaro and have a question regarding custom field accessibilty. We have added custom fields that hold image urls to Item and we're not able to see these fields, or any custom fields, when looking at the item object in Item.KeyMapping in the Item module, specifically the _thumbnail property:
, _thumbnail: function (item)
{
var item_images_detail = item.get('itemimages_detail') || {};
// If you generate a thumbnail position in the itemimages_detail it will be used
if (item_images_detail.thumbnail)
{
if (_.isArray(item_images_detail.thumbnail.urls) && item_images_detail.thumbnail.urls.length)
{
return item_images_detail.thumbnail.urls[0];
}
return item_images_detail.thumbnail;
}
...
}
I'm looking specifically at the first line, var item_images_detail = item.get('itemimages_detail') || {};. The item parameter to _thumbnail doesn't appear to have any custom fields attached to it at all. Is itemimages_detail populated "behind the scenes", i.e. there isn't any way to add custom data to this? We've been able to rig up a workaround by making an ajax call to the item api to get the image fields we want, but we'd rather not have to do this and just pull from the item objet that's already available to us.
Thanks for any and all help!