/// <summary> /// Given a datasource from a Sitecore Control, this will parse the string to turn it into a bucket query and to run the query as well using the Context Item /// </summary> public static List <SitecoreItem> ParseDataSourceQueryForItems(string dataSource, int pageNumber, int pageSize, out int hits) { hits = 0; int hitCount = hits; return(BucketManager.FullSearch(ParseDataSourceQuery(dataSource), out hitCount, pageNumber: pageNumber, pageSize: pageSize).ToList()); }