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
Does anyone know what has been replaced in Version 8 that can still get the same out of GetPreValueAsString ?
I have this line of code in Version 7 and need it converted to 8:
ret.Add(property.Alias, content.Value<int[]>(property.Alias).Select(s => umbracoHelper.GetPreValueAsString(s)).ToArray());
Thanks
Jon
Hi Jon
IIRC the prevalue is now returned by default instead of the id, so you should be able to do
ret.Add(property.Alias, content.Value<IEnumerable<string>>(property.Alias).ToArray());
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetPreValueAsString in version 8
Does anyone know what has been replaced in Version 8 that can still get the same out of GetPreValueAsString ?
I have this line of code in Version 7 and need it converted to 8:
Thanks
Jon
Hi Jon
IIRC the prevalue is now returned by default instead of the id, so you should be able to do
is working on a reply...