Media picker linking by Id not OriginalContentId??
I had the following code, but the results on the front end were not showing me anything
protected
void
documentListView_NeedDataSource(
object
sender, RadListViewNeedDataSourceEventArgs e)
LibrariesManager manager = LibrariesManager.GetManager();
List<Guid> documentIds =
this
.ContentLinks.Select(x => x.ChildItemId).ToList();
var docs = (from d
in
manager.GetDocuments()
where documentIds.Contains(d.OriginalContentId)
select d);
((RadListView)sender).DataSource = docs.OrderByDescending(x => x.LastModified);
where documentIds.Contains(d.OriginalContentId) || documentIds.Contains(d.Id)
...source shows this to be the case, am I offbase here?
Hi Steve,
Document.Id property is mapped to sf_media_content.content_id, which isn't changed in case of document modification.
OriginalContentId field holds the linkage between document's lifecycle versions (Live, Temp objects linked to Master one).
So, if you modify the document in the backend, you'll not lose the linkage between the dynamic item and the document you eventually modified.