Url in Property list not saving

  • Page Owner: Not Set
  • Last Reviewed: 2019-01-03

There is a property list in an old project that has stopped working, whats going on?


Answer

As of Episerver 11 you now need to add the following attributes to your URL properties when they are being used in a PropertyList:

[JsonProperty]
[JsonConverter(typeof(UrlConverter))]
[Display(Name = "Links", Order = 400)]
public virtual Url UrlLink { get; set; }

https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2017/12/new-propertylistlttgt-episerver-11/

Comments

  • Note to anyone using this for categories. You cannot do single categories, but must use category list instead.