Available for: Content Management Server
Task: Exports the folder hierarchy starting at the specified folder.
Syntax:
obj (withId objId) | (withPath path) | root exportSubtree {parameter value}
Function parameters:
parameterspecifies the name of a parameter whose value modifies the export results. The following values are valid forparameter:absoluteFsPathPrefix: Specifies that links that are exported as file paths are to be exported as absolute paths and thatvalueis to be used as their prefix. In the context of this command, this parameter overrules the corresponding entry in theexportsystem configuration entry. If this entry does not exist,/is used.absoluteUrlPrefix: same asabsoluteFsPathPrefixbut for the paths in URLs.exportCharset: Specifies thatvaluenames the character set to be used for the documents generated during the export. The supported values are listed in theexport.charsetMapsystem configuration entry. If this parameter is not specified, the system configuration valueexport.charsetis used. If this entry is missing,utf-8is used.filePrefix: Specifies thatvaluecontains a prefix to be attached to the export file name.maxDepth: specifies thatvaluecontains an integer number specifying the number of folder levels to export. If this parameter is missing the numer is unlimited.purgeCollections: specifies thatvaluedetermines whether the collections are to be deleted prior to the export (1, default) or not (0).templateName: Specifies thatvaluecontains the name of a layout that should be used during export instead of the value of the the user-specific configuration entrydefaultTemplate. If this parameter is not specified and thedefaultTemplateentry does not exist,mastertemplateis used.
valuecontains the value for the respective parameter.
Additional information:
This command can only be used for folders.
During export, a directory structure corresponding to the folder hierarchy is created. A dedicated directory is created for each folder in the folder hierarchy. The version of the folder are stored as the
index.htmlfile in this directory. Documents are exported to this directory asfilename.html. Images and resources receive the file name extension of their respective version.With the
export.abortOnErrorsystem configuration entry (YESorNO) you can control whether the export will be terminated or continued if an error occurs.If the Search Engine Server is running and the
indexing.staticExport.isActiveentry in the system configuration of the Content Manager has been set totrue, then the UTF-8 encoded web documents are indexed during the export, using the configured collections.
Return value if successful: none
Necessary permissions (CM only): The user must have the permissionGlobalExport permission for the file.
Example:
CM>obj withId 4567 exportSubtree filePrefix /tmp