Try our conversational search powered by Generative AI!

EPiServer.Url not working in EditorDescriptor for page - EPiServer 11

Vote:
 

We recently upgraded to EPiServer 11, and when that happened the EPiServer.Url seems to stop working in a EditorDescriptor for page.

[EditorDescriptor(EditorDescriptorType = typeof(GameBrowserPuffEditorDesciptor))]
        public virtual IList CustomPuffs { get; set; }

public class GameBrowserPuffEditorDesciptor : CollectionEditorDescriptor where T : new()
    {
        public GameBrowserPuffEditorDesciptor() : base()
        {
            GridDefinition.DisableDndSorting = true;
            GridDefinition.ExcludedColumns.Add("Id");
        }
    }

public class GameBrowserPuff
    {
        public GameBrowserPuff()
        {
            if (Id == Guid.Empty) Id = Guid.NewGuid();
        }

        public Guid Id { get; }

        [Display(Order = 30, Name = "Url")]
        public virtual Url Url { get; set; }
    }

When publishing the page that contains the property the EPiServer.Url is emptied and results in a runtime error.

Is this not supported in EPiServer 11 anymore? Or is it replaced with something else?

#192381
May 16, 2018 8:56
Vote:
 

Episerver URL is still supportes as far as I know, maybe it has something to do with how you do your editordescriptor.

By the look of the code, any reason why you not using a local block for that?

#192385
May 16, 2018 9:40
Vote:
 

Please elaborate on 'local block'? What do you mean? This specific instance is already in a block, but there are other instances where similar types are used in pages.

#192387
Edited, May 16, 2018 9:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.