I have a job description page, and I am adding values to it programmatically. One of the fields is "Office Locations", with a data type of Treelist. How can I add values to the Treelist so that I can set the office location?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Sitecore
Treelist
stores the ids of selected items in a pipeline separated form.If you want to set the value of
Treelist
programmatically you need to set it to a string which looks like:where
{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}
,{EA015A5F-C41B-4510-B538-438EF204F5E2}
and possibly more of the string parts separated with|
characters are ids of chosen pages.