MediaContentSelectorView returning draft version of image
Hi,
I've got the mediacontentselectorview in a control designer im working on. When I select an item in the list, the following code is called:
imageSelected:
function
(sender, args)
//set the global variable SelectedMediaDataItem for use later
var
dataItem = args.get_dataItem();
alert(dataItem.Id);
alert(dataItem.Title);
this
.set_SelectedMediaDataItem(dataItem);
,
Hi higgsy,
I do not see the the screenshot attached, but looking at the code of the MediaContentSelecorView I see that it gets the items with status LIVE. I suppose that you are not performing the binding.
The selector should return the correct LIVE items.
All media items are stored inside [sf_media_content]. There is a column [status] where per persist the item stats
0 - Master
1- Draft
2 - Live
All the best,
Ivan Dimitrov
the Telerik team
Hi Ivan,
Ok - if status of 2 is the live version then the mediacontentselectorview is returning the correct version - my mistake. I questioned it because in the sf_media_content table, the version with the status of 0 has a content_state of "published" whereas the other versions do not....but anyway, if zero is the live version then its not a problem.
Thanks for the clarification.
Regards,
higgsy