hi Brenden, i have access all the documents by above MultiDocumentQuery
but unable to access data of documents please suggest, my sample code is here, i want to get data from page fields, please suggest...
Thanks
MultiDocumentQuery pages = DocumentHelper.GetDocuments()
.Path("/News", PathTypeEnum.Children)
.OnSite(SiteContext.CurrentSiteName)
.OrderBy("NodeOrder")
.Culture(LocalizationContext.CurrentCulture.CultureCode)
.Published(true);
if(pages != null && pages.Count > 0)
{
foreach(TreeNode item in pages)
{
//here i' checking class name of document because there are multiple documents of different type
if(item.ClassName == "CMS.News")
{
if(item.GetValue("Title") != null && item.GetValue("Title").ToString() != "")
{
strTitle = item.GetValue("Title").ToString();
}
}
}
}