An output path pattern is a
FreeMarker expression which is used to specify the path to use when saving a generated asset using variable substitution when creating web content.
Guidelines
Output path patterns beginning with a leading slash (such as /${webapp}/content/${name}.xml) will produce paths rooted at the sandbox. Those not begining with a leading slash will produce paths relative to the current working directory when the create web content wizard is invoked.
Variables
name | The name of the form instance data as entered by the user in the create web content wizard. |
webapp | The name of the webapp in which the form instance data is being created. Typically, if specifying an absolute output path pattern, the path will begin with the webapp folder (i.e. /${webapp}/...) |
extension | The default extension associated with the mime-type configured for the rendering engine template. This variable is only available for rendition ouput path patterns. |
xml | The xml instance data collected by the form. |
node | The form instance data node. |
date | The current date at which the form instance data is being saved. Refer to the FreeMarker date reference for more information. |
For example
${name}.xml | form_name.xml |
${name}.${extension} | form_name.html |
/${webapp}/content/${name}.xml | /ROOT/content/form_name.xml |
${date?string("yyyy-MM-dd")}.xml | 2007-01-09.xml |
For a more complete reference, please refer to the
wiki.