tobbbe
2/10/2016 - 4:02 PM

split multinodepicker ids, get node-names and add them to a list

split multinodepicker ids, get node-names and add them to a list

UmbracoHelper umbhelper = new UmbracoHelper(UmbracoContext.Current);

AllowedFontSizes = (PlateNode.GetPropertyValue<string>("AllowedFontSizes") ?? "")
  .Split(',')
  .Select(v => umbhelper.TypedContent(v))
  .Where(c => c != null)
  .Select(c => c.Name)
  .ToList();