From bd2cfd8cb5d6ff7d74f35424d2ac14bca79ba189 Mon Sep 17 00:00:00 2001 From: Kalarumeth <70245579+Kalarumeth@users.noreply.github.com> Date: Tue, 20 Sep 2022 18:15:17 +0200 Subject: [PATCH] Minor text fix --- console_spo_utils/Services/ProjectService.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/console_spo_utils/Services/ProjectService.cs b/console_spo_utils/Services/ProjectService.cs index 18286d5..d5719cc 100644 --- a/console_spo_utils/Services/ProjectService.cs +++ b/console_spo_utils/Services/ProjectService.cs @@ -35,7 +35,7 @@ public class ProjectService : IProjectService var ctx = sharePointAuthenticationManager.GetContext(siteOptions.GetProjectSite()); Web web = ctx.Web; - var file = web.GetFileByServerRelativeUrl("/sites/Commesse/SitePages/ProjectHome.aspx"); + var file = web.GetFileByServerRelativeUrl("/sites/Commesse/SitePages/Home.aspx"); ctx.Load(web); ctx.ExecuteQuery(); @@ -44,9 +44,10 @@ public class ProjectService : IProjectService string url = siteOptions.GetProjectYearSite() + "/Lists/" + siteOptions.GetProjListTitle().Replace(" ", "%20") + "/" + siteOptions.GetProjListTitle().Replace(" ", "%20") + ".aspx?viewid="; - string htmlSchema = $"

{siteOptions.GetProjYearTenant()}

" + + + string htmlSchema = $"

{siteOptions.GetProjYearTenant()}

" + $"

Progetti Macchiana
Solo i progetti di vendita Macchine/Impianti

" + - $"

Progetti Ricambi
Altri Progetti

" + + $"

Progetti Ricambi
Solo i progetti di vendita Ricambi

" + $"

Altri Progetti
Tutti gli altri progetti che non siano di vendita Macchine/Impianti o Ricambi

"; string xmlSchema = "" + @@ -54,7 +55,6 @@ public class ProjectService : IProjectService " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" + " xmlns=\"http://schemas.microsoft.com/WebPart/v2\">" + $"{siteOptions.GetProjYearTenant()}None" + - "true0" + "Microsoft.SharePoint, Version=13.0.0.0, Culture=neutral, " + "PublicKeyToken=94de0004b6e3fcc5" + "Microsoft.SharePoint.WebPartPages.ContentEditorWebPart" + @@ -65,6 +65,7 @@ public class ProjectService : IProjectService webpartService.AddWebPart(web, mgr, xmlSchema, wpName, "Body", 0); + var qm = new NavigationNodeCreationInformation() { Title = siteOptions.GetProjYearTenant(), @@ -78,7 +79,7 @@ public class ProjectService : IProjectService } catch (Exception ex) { - logger.LogError(ex, "Tenant Creation"); + logger.LogError(ex, "WebPart Build"); } }