Creating custom metadata for a document specification
You can customize your own metadata for a document specification. Custom metadata is useful when you reference properties with the _sessionInfo internal variable or when you manage groups of document specifications through the API. You can also perform actions on document specifications outside of IBM Engineering Lifecycle Optimization - Publishing based on the metadata that is stored within those document specifications.
About this task
Important: Custom metadata properties do not
have a run time impact on document generation.
Procedure
- In the Document Specification view, right-click Metadata.
- Click Add property.
- Enter a name for the property.
- Enter a value for the property.
- Click OK. When Metadata is selected in the Document Specification view, the property that you added is displayed in the Properties view.
Example: Creating owner name metadata and referencing it in a template
To create the metadata:- In the Document Specification view, right-click Metadata.
- Click Add property.
- For the name of the property, enter owner to store the name of the document specification owner as a custom metadata property.
- For the value of the property, enter: Joe Smith
- Click OK. The property is displayed in the Properties view:
- Add two text elements to the content editor.
- Click the first text element and enter the text: Document specification owner:
- Double-click the second text element.
- On the Script Expression tab, expand Variables and select the _sessionInfo check box.
- In the Script Expression editor, enter the following information:
_sessionInfo.getDocspecProperty("owner", "");