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
I'm programming a importator with the ContentService and I'm stuck with two type of fields : Repeatable Strings and MultiUrl.
Before setting my value using the SetValue methods, I check how to format my data with the GetValue method from a test page.
When my field is one of the types above it always retuns me null.
When I do page.Properties.ElementAt(xx).Values I got the expected values, but I can't figure out how to set the value.
Can anybody help me?
P.S: I hope that my english is not too bad for you to understand my issue hahaha.
I just managed to solve this by a very ugly solution:
Yes Dee, I solved this the same way :P
You can user the string.Join() method instead.
var listOfValues = new List<string>();
contentService.SetValue("", string.Join(Environment.NewLine, listOfValues));
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted