答案 0 :(得分:0)
您可以阅读“带有搜索的多列表”字段的选定值,如下所示:
Sitecore.Data.Fields.MultilistField _multilistField = Sitecore.Context.Item.Fields["fieldname"];
if (_multilistField != null)
{
foreach (ID _id in _multilistField.TargetIDs)
{
Item yourSelectedItem = Sitecore.Context.Database.Items[_id];
}
}