I'm following the Bart blog https://www.sdltridionworld.com/community/2011_extensions/view_in_staging_live.aspx UI customization for the pages to view the page in staging and active it is working.
I'm trying to implement the customization for the Binaries.
For binaries what need to be passed ItemType
? in the JS and for selecting item as Page using ItemType.PAGE
.
Tridion.ContextMenus.STAGING.prototype._isAvailable = function (selection, pipeline) {
var items = selection.getItems();
if (items.length != 1) {
return false;
}
var itemId = selection.getItem(0);
var item = $models.getItem(itemId)
if (item) {
if (item.getItemType() != $const.ItemType.?????) {
return false;
}
}
if (pipeline) {
pipeline.stop = false;
}
return true;
};
Our use case is that we are using Binaries as DCPs and we will have a configuration component mapping the location of the binaries to the Structure group which will be used for forming the URL
Any help appreciated thanks