Default Folder Path Example using the FolderPathAttributeAlgorithm
The following example shows the out-of-the-box XML that sets the default folder path that is used when creating a document:
<AttributeValues objType="wt.doc.WTDocument">
<!-- set the folder -->
<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.
FolderPathAttributeAlgorithm">
<Arg>/Default</Arg>
</AttrValue>
</AttributeValues>
This example shows the use the following XML to specify the default document folder path:
<Arg>/Default</Arg>
/Default in this argument is used to indicate the top-level folder that is the listed in the folder browser on the Folders page of any context. The name of the top-level folder is the same as the name of the context. When setting the default value for folder.id, always start the path with /Default. To name a folder under the top-level folder, add a slash and the folder name after /Default. For example, to set the default value to the Design folder, include the following argument:
<Arg>/Default/Design</Arg>
For examples that use both default values and constraints for the folder.id attribute, see
Использование алгоритмов ограничения для полей расположения папки.