Esempio n. 1
0
 public static MultiDocumentQuery AddVersionsParameters(this MultiDocumentQuery query, bool isPreview)
 {
     return(query
            .LatestVersion(isPreview)
            .Published(!isPreview)
            .OnSite(SiteContext.CurrentSiteName));
 }
Esempio n. 2
0
 public static MultiDocumentQuery GetLatestSiteDocuments(this MultiDocumentQuery query, IDocumentQueryContext context) =>
 query.LatestVersion(context.IsPreviewEnabled)
 .Published(!context.IsPreviewEnabled)
 .OnSite(context.SiteName)
 .CombineWithDefaultCulture();