Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am attempting to create a new content item and populate a repeatable textfield called "urlSegments" on the item.
For example:
// using ManagementContent = Umbraco.Headless.Client.Net.Management.Models.Content; var item = new ManagementContent { ParentId = ItemIds.BrandSettings, ContentTypeAlias = ContentTypeAliases.Brand }; item.Name.Add(Culture, request.BrandName); item.Properties.Add("urlSegments", new Dictionary<string, object> { {Culture, string.Join('\r', request.BrandUrlSegments)} });
Although this successfully creates the item, the urlSegments field is blank in the backoffice.
This example uses a '\r' delimiter based on these threads:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/100082-contentservice-setvalue-of-repeatable-strings
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/77014-create-extra-textstring-in-repeatable-texstring-programmatically
I have also tried just dropping a List
Any ideas?
Thanks, Joe
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Populate a repeatable textstring via headless client
Hello,
I am attempting to create a new content item and populate a repeatable textfield called "urlSegments" on the item.
For example:
Although this successfully creates the item, the urlSegments field is blank in the backoffice.
This example uses a '\r' delimiter based on these threads:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/100082-contentservice-setvalue-of-repeatable-strings
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/77014-create-extra-textstring-in-repeatable-texstring-programmatically
I have also tried just dropping a List
Any ideas?
Thanks, Joe
is working on a reply...