Restrict editor service content picker to specific doc type
Hi all,
I have the following code which loads the content picker using the editor service, this is working apart from I am currently able to pick any item in the tree.
I would like to be able to restrict this to a specific doc type. I know this is possible as I done this when using the multi node tree picker, I just can't seem to find the configuration option.
my function that I call from my custom grid editor:
$scope.showContentPickerDialog = function () {
var options = {
multiPicker: true,
submit: function (value) {
$scope.model.selections = value.selection;
editorService.close();
},
close: function () {
editorService.close();
}
}
editorService.contentPicker(options);
}
Restrict editor service content picker to specific doc type
Hi all,
I have the following code which loads the content picker using the editor service, this is working apart from I am currently able to pick any item in the tree.
I would like to be able to restrict this to a specific doc type. I know this is possible as I done this when using the multi node tree picker, I just can't seem to find the configuration option.
my function that I call from my custom grid editor:
Any ideas?
Thanks in advance,
Ben
Hey Ben, Heree is some options you are looking for :)
Hey Lucas,
the 'filter' option did the job!
thank you,
Why are these not in the docs?
https://our.umbraco.com/Documentation/Reference/Angular/Services/editorService/Index/
is working on a reply...