In my custom form I'm trying to set the root element of the category controls picker (control used for category selection by form engine) not to the root element of category tree, but on the root element of one of my custom category list.Looking at the code in the category.ftl file<script type="text/javascript">//<![CDATA[
(function()
{
<@renderPickerJS field "picker" />
picker.setOptions(
{
itemType: "cm:category",
multipleSelectMode: ${(field.control.params.multipleSelectMode!true)?string},
parentNodeRef: "alfresco://category/root",
itemFamily: "category",
maintainAddedRemovedItems: false,
params: "${field.control.params.params!""}",
createNewItemUri: "${field.control.params.createNewItemUri!}",
createNewItemIcon: "${field.control.params.createNewItemIcon!}"
});
})();
//]]></script>Here the Picker class options as setted for retrieving all categories (and of course it works). Now I'm trying to change the line parentNodeRef: "alfresco://category/root",
Setting something like parentNodeRef: "alfresco://category/root/mycustomcategory",
but it doesn't work… any idea?