Tarik
06/02/2024, 10:22 AMMatt Wise
06/02/2024, 11:27 AMTarik
06/02/2024, 11:41 AMcontentService
as below but trashed property I find it always false even if the item in Recycle Bin!
// Retrieve all content items
var allContent = _contentService.GetRootContent().SelectMany(GetDescendantsRecursive).ToList();
var trashedCount = allContent.Count(c => c.Trashed);
Matt Wise
06/02/2024, 11:55 AMTarik
06/02/2024, 11:56 AMMatt Wise
06/02/2024, 11:56 AMMatt Wise
06/02/2024, 11:57 AMMatt Wise
06/02/2024, 11:59 AMIContent c;
//Has draft and cultures
c.Edited;
c.IsCultureEdited("en");
//is published and in what cultures
c.Published;
c.PublishedCultures;
//In the recycle bin
c.Trashed //but your query is removing these
Tarik
06/02/2024, 12:15 PM