Having trouble programmatically creating Umbraco.MultiUrlPicker
Hello, the code I have right now while attempting to create a document type that includes Umbraco.MultiUrlPicker with some static data looks like this:
ReadMoreLinks = new List<Link>
{
new Link
{
Target = "_blank",
Name = "Test link",
Url = "https://google.com",
Type = LinkType.External,
Udi = Udi.Create(Constants.UdiEntityType.Document, Guid.NewGuid())
}
},
I initially tried creating it without any sort of Udi/Guid, which successfully creates the link in the picker but throws an error while browsing the site. When I have the code as above it doesn't create it at all. I've tried a few different variations but I'm not sure how to go about this anymore. Thanks in advance
Having trouble programmatically creating Umbraco.MultiUrlPicker
Hello, the code I have right now while attempting to create a document type that includes Umbraco.MultiUrlPicker with some static data looks like this:
I initially tried creating it without any sort of Udi/Guid, which successfully creates the link in the picker but throws an error while browsing the site. When I have the code as above it doesn't create it at all. I've tried a few different variations but I'm not sure how to go about this anymore. Thanks in advance
is working on a reply...