How to get the count of the pages inside a folder, I am using this statement and its giving me count for only root level, If i need the count of pages inside a folder within a folder , it returns me Zero. What do I need to add in here
DocumentHelper.GetDocuments().Path(myfolderpath).Count();
And How would i get the number of dcoument only for the folder specified, even if there are multiple folders inside it.
Use something like this:
DocumentHelper.GetDocuments().Types("cms.menuitem").OnSite("mysite").Path(myPath, PathTypeEnum.Children).Where("DocumentMenuItemHideInNavigation = 0").Columns("NodeID").Published().Count
Please, sign in to be able to submit a new answer.