Skip to content

Commit

Permalink
Added SEO property
Browse files Browse the repository at this point in the history
  • Loading branch information
marisks committed Apr 28, 2022
1 parent 8471844 commit 69e9455
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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();
}
}
}

0 comments on commit 69e9455

Please sign in to comment.