Handy snippet for Sitecore CMS - Part 5 - Getting items from a Treelis(hockblogs.net)
submitted by
hockman(505) 2 years, 2 months ago
Hi there,
In my previous post, you could get the items from a tree list field. In this post, we'll get them in another way:
Sitecore.Data.Items.Item item = Sitecore.Context.Item;
Sitecore.Data.Fields.MultilistField multilistField = item.Fields["TreeListField"];
Sitecore.Data.Items.Item[] items = multilistField.GetItems();
Hope this is usefull!
|category: Other
|Views: 17
tags:
another
Everyones tags:
No tags
Your Tags: