我正在构建一个Umbraco内容选择器,用于这样的后端自定义
{
label: 'Select Product Category',
description: 'This will be some really useful description for the picker when its written.',
view: 'contentpicker',
config: {
multiPicker: "0",
entityType: "Document",
startNode: {
query: "",
type: "content",
id: 1069
},
filter: "",
minNumber: 0,
maxNumber: 5
},
value: $scope.cat
}
我猜测而不是id:1069我可以用过滤器做某事。假设我知道该节点将命名为" Foo" - 我可以做一些像过滤器这样的事情:" / foo"如果是这样,我该如何处理ID?