From 69e94550053255b15d5896c97001155c90fd3548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81ris=20Krivte=C5=BEs?= Date: Thu, 28 Apr 2022 16:37:09 +0300 Subject: [PATCH] Added SEO property --- .../Features/Shared/FoundationPageData.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sandbox/Foundation/src/Foundation/Features/Shared/FoundationPageData.cs b/sandbox/Foundation/src/Foundation/Features/Shared/FoundationPageData.cs index a1f25448..2bf6c9e8 100644 --- a/sandbox/Foundation/src/Foundation/Features/Shared/FoundationPageData.cs +++ b/sandbox/Foundation/src/Foundation/Features/Shared/FoundationPageData.cs @@ -9,6 +9,7 @@ using Foundation.Features.Blocks.ButtonBlock; using Foundation.Features.Shared.SelectionFactories; using Foundation.Infrastructure; +using Geta.Optimizely.Sitemaps.SpecializedProperties; //using Geta.EpiCategories; //using Geta.EpiCategories.DataAnnotations; using System.ComponentModel.DataAnnotations; @@ -251,7 +252,11 @@ public string ThemeCssClass public virtual string Css { get; set; } #endregion - + + [UIHint("SeoSitemap")] + [BackingType(typeof(PropertySEOSitemaps))] + public virtual string SEOSitemaps { get; set; } + //public virtual void SetItem(ItemModel itemModel) //{ // itemModel.Description = PageDescription; @@ -269,6 +274,13 @@ public override void SetDefaultValues(ContentType contentType) Padding = "p-1"; Margin = "m-1"; base.SetDefaultValues(contentType); + + var sitemap = new PropertySEOSitemaps + { + Enabled = false + }; + sitemap.Serialize(); + this.SEOSitemaps = sitemap.ToString(); } } } \ No newline at end of file