Hi everyone,
Not the most elegant way of approaching this issue but it may help someone.
Effectively what I had to do was append the different page types.
Undoubtedly this is far from dynamic as I will need to add more ".Type's" to the query if I am to include further page types.
Here is a sample of the code
nodes = DocumentHelper.GetDocuments()
.Type("CMS.MenuItem", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.Type("xxx.1", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.Type("xxx.2", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.Type("xxx.3", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.Type("xxx.4", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.Type("xxx.5", q => q.Columns("MenuItemGroup").WhereLike("MenuItemGroup", "%" + menuType + "%"))
.OnSite(SiteContext.CurrentSiteName)
.Path(rootPath, PathTypeEnum.Children)
.Culture("en-GB")
.CombineWithDefaultCulture(true)
.Published(true)
.NestingLevel(nestingLevels)
.ExcludePath("/Products", PathTypeEnum.Section)
.Where("NodeID <> " + rootNode.NodeID + " AND ClassName <> 'CMS.Product' AND DocumentMenuItemHideInNavigation = 0")
.....
Best regards,
Pedro