Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
How i am getting all published and unpublished
var contentType = ApplicationContext.Services.ContentTypeService.GetContentType("documentTypeALias"); int unpublishedPages = ApplicationContext.Services.ContentService.GetContentOfContentType(contentType.Id).Where(page => page.Trashed == false && page.Published == false).ToList().Count; int publishedPages = ApplicationContext.Services.ContentService.GetContentOfContentType(contentType.Id).Where(page => page.Trashed == false && page.Published == true).ToList().Count;
But problem is that when i unpublished parent node it only +1 as unpublished, not its child
Thanks Manish
Hi Manish,
Why did you check for Trashed?
Hi Alex
I don't want to include nodes which is in trash
Manish
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
published and unpublished node count
Hi
How i am getting all published and unpublished
But problem is that when i unpublished parent node it only +1 as unpublished, not its child
Thanks Manish
Hi Manish,
Why did you check for Trashed?
Hi Alex
I don't want to include nodes which is in trash
Manish
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.