As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
'File Picker' Folder Restriction The 'folder_restriction' parameter must be set to a relative AVM folder path (e.g. some/relative/folder/path). This must point to the AVM folder to which you want to restrict the file picker and be relative to the ROOT folder of the web project. Only the contents of the specified folder will be available for selecting in the file picker. If the 'folder restriction' parameter is set to the example relative folder path above, then the absolute path for that AVM folder will be something like 'sandbox-store-id:/www/avm_webapps/ROOT/some/relative/folder/path' - where 'sandbox-store-id' is the ID of the sandbox being populated by the file picker and '/www/avm_webapps/ROOT/' is the path to the ROOT folder of the web project.
<param name="selectable_types">wcm:avmcontent,wcm:avmfolder</param>
// if folder path restriction (relative path) is set, // then calculate the absolute restriction path (in context of file // picker's // initial current path - the path at which it was opened the first time) // and set file picker current path to that if ((folderPathRestriction != null) && (folderPathRestriction.length() != 0)) { if (!currentPath.startsWith(initialCurrentPath + folderPathRestriction)) { currentPath = initialCurrentPath + folderPathRestriction; } }