WTDocument coversheet customization allows users to modify the layout and content of their document coversheets. This can be achieved by using a template file with specialized markups that are replaced with actual values generated by generator classes.
The basis of the coversheet template mechanism is the concept of generators, which browse through the template and find all the markups. A markup is constructed as ${}. Each generator follows the same procedure recursively:
Coversheets can be customized in several ways, including:
<img>
tagTo customize a coversheet, create a new template file (e.g., CustomTemplate.tpl) and register it in the template.properties.xconf file. The template file can include markups, images, and other content.
The following table lists the available out-of-the-box markups:
Markup Name | Example |
---|---|
LIFECYCLESTATE | Released |
AUTHOR | Anyuser |
DOC_BUSINESSTYPE | WTDocument |
DOC_HASH | |
CHANGE | FALSE |
DOC_MODIFYTIMESTAMP | 1/28/2013 |
IST | |
DOC_HASVARIANCE | FALSE |
CONTEXT_CREATORS | Site, Administrator |
HEADER_TITLE | 9 |
DOC_TYPEINFO | WTDOCUMENT |
wt.doc.WTDocumentTypeInfo | |
DOC_FORMATNAME | Microsoft Office Word 2007 document |
REVISIONINFO | A |
DOC_CREATETIMESTAMP | 1/28/2013 10:34:15 AM IST |
DOC_OBJECTID | OR:wt.doc.WTDocument:146024 |
DOCUMENT_TYPE | Document |
ADAPTER_NAME | doc2pv |
DOC_HASPENDINGCHANGE | FALSE |
DOC_CREATORFULLNAME | Demo, User |
CONTEXT | GOLF_CART |
TYPE | Document |
COMPANY | PTC |
HEADER_VERSION | A.2 |
NUMBER_OF_WORD | |
LAST_AUTHOR | Anyuser |
NUMBER_OF_BYTES | 11705 |
DOC_VERSIONINFO | A.2 |
DOC_DOCTYPE | Document |
TOTAL_EDITING_TIME | 0 |
APPLICATION_NAME | Microsoft Office Word |
SECURITY | 0 |
HEADER_NUMBER | 21 |
REVISION_NUMBER | 3 |
DOC_QUALIFIEDIDENTIFIER | A.2 |
DOC_NUMBER | 21 |
DOC_ORGANIZATIONNAME | Demo Organization |
DOC_LIFECYCLESTATE | Released |
NUMBER_OF_PAGES | 1 |
CONTEXT_TEMPLATE | Demo Product |
DOCUMENT_NUMBER | 21 |
DOC_ITERATIONDISPLAYIDENTIFIER | A.2 |
SOURCE_FILE_NAME | 9.docx |
DOC_CONTAINERNAME | GOLF_CART |
DOC_LIFECYCLENAME | Basic |
CONTEXT_CREATE_TIMESTAMP_ATTRFORMAT | UTC |
ORGANIZATION | Demo Organization |
LAST_SAVE_TIME | 12/24/2012 |
DOC_TEMPLATE | FALSE |
DOC_MODIFIERNAME | demo |
URL | http://i4950.ptcnet.ptc.com/Windchill/servlet/WindchillAuthGW/wt.content.ContentHttp/viewContent/9.docx?u8&HttpOperationItem=wt.content.ApplicationData%3A146026&ContentHolder=wt.doc.WTDocument%3A146024&originalFileName=9.docx&forceDownload=true |
DOC_NAME | 9 |
CONTEXT_LAST_MODIFIED_TIMESTAMP_ATTRFORMAT | UTC |
DOCUMENT_TITLE | 9 |
HEADER_TITLE | 9 |
HEADER_NUMBER | 21 |
HEADER_VERSION | A.2 |
HEADER_DATE | 12/28/2012 |
NUMBER_OF_CHARACTERS_(WITH_SPACES) |
To create a new template, generator, and markup, follow these steps:
For more information on WTDocument coversheet customization, visit the PTC Support website. To learn more about Windchill, visit the Windchill Help Center.