Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,7 @@ MigrationBackup/
.ionide/

# mac OS
.ds_store
.ds_store

# rider
.idea/
18 changes: 18 additions & 0 deletions src/PnP.Scanning/PnP.Scanning.Core/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,23 @@ internal static class Constants
#region PnPContext properties
internal const string PnPContextPropertyScanId = "ScanId";
#endregion

#region Cpub templates
internal static readonly List<string> CpubTemplates = new List<string>
{
"BLANKINTERNETCONTAINER#0", // Publishing Portal
"CMSPUBLISHING#0", // Publishing Site
"BLANKINTERNET#0", // Publishing Site
"BLANKINTERNET#1", // Press Releases Site
"BLANKINTERNET#2", // Publishing Site with Workflow
"ENTERWIKI#0", // Enterprise Wiki
"SRCHCEN#0", // Enterprise Search Center
"SPSSITES#0", // Site Directory
"SPSNHOME#0", // News Home Site
"PRODUCTCATALOG#0", // Product Catalog
"SPSREPORTCENTER#0", // Report Center
"SPSTOPIC#0" // Topic Area Template
};
#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,24 @@ internal static SiteType GetSiteType(string webTemplate)
"CMSPUBLISHING#0" => SiteType.Publishing,
// Publishing site
"BLANKINTERNET#0" => SiteType.Publishing,
// Press Releases Site
"BLANKINTERNET#1" => SiteType.Publishing,
// Publishing site with workflow
"BLANKINTERNET#2" => SiteType.Publishing,
// Enterprise Wiki
"ENTERWIKI#0" => SiteType.Publishing,
// Enterprise Search Center
"SRCHCEN#0" => SiteType.Publishing,
// Site Directory
"SPSSITES#0" => SiteType.Publishing,
// News Home Site
"SPSNHOME#0" => SiteType.Publishing,
// Product Catalog
"PRODUCTCATALOG#0" => SiteType.Publishing,
// Report Center
"SPSREPORTCENTER#0" => SiteType.Publishing,
// Topic Area Template
"SPSTOPIC#0" => SiteType.Publishing,
// Blog
"BLOG#0" => SiteType.Blog,
// Everything else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ await QueryListAsync(blogList, PageQuery(new List<string> { }, filterOnASPXPages
}).ConfigureAwait(false);
}
}
else if ((scannerBase.WebTemplate == "BLANKINTERNET#0" || scannerBase.WebTemplate == "ENTERWIKI#0" ||
scannerBase.WebTemplate == "SRCHCEN#0" || scannerBase.WebTemplate == "CMSPUBLISHING#0") &&
else if (Constants.CpubTemplates.Contains(scannerBase.WebTemplate) &&
sitePublishingEnabled && webPublishingEnabled)
{
await QueryPublishingPagesAsync(scannerBase, pagesList, lists, remediationCodes).ConfigureAwait(false);
Expand Down