changes.mady.by.user Robert Reiner
Saved on 10. Nov 2019
...
This section lists services available in the velocity context to be used with user macros in Confluence.
projectdoc documents are accessible via the projectdoc document manager by the key projectdocDocumentManager.
projectdocDocumentManager
Provides access to a document with all properties set. The document is referenced by a page identifier.
#set ( $document = $projectdocDocumentManager.getDocumentBasicsByPageId(819207)) #set ( $property = $document.getProperty($paramName)) #set ( $propertyValue = $property.getRenderedValue())
Provides access to a document with all properties set. The document is referenced by a page.
#set ( $page = $pageManager.getPage(819207)) #set ( $document = $projectdocDocumentManager.getDocumentBasicsByPage($page)) #set ( $property = $document.getProperty($paramName)) #set ( $propertyValue = $property.getRenderedValue())
Provides access to a document with basic properties set. The document is referenced by a page identifier.
This version is faster in case only properties entered by a user are to accessed.
Provides access to a document with basic properties set. The document is referenced by a page.
Properties of projectdoc documents are directly accessible via the projectdoc document property manager by the key projectdocDocumentPropertyManager .
projectdocDocumentPropertyManager
Provides access to a document property by page and document property name.
#set ( $page = $pageManager.getPage(819207)) #set ( $propertyValue = $projectdocDocumentPropertyManager.getDocumentPropertyAsString($page, "Name"))
Provides access to a document property by page identifier and document property name.
#set ( $propertyValue = $projectdocDocumentPropertyManager.getDocumentPropertyAsString(819207, "Name"))
Provides access to a document property value by page identifier and document property name key.
This allows to access a property dependent on the currently used locale.
#set ( $page = $pageManager.getPage(819207)) #set ( $propertyValue = $projectdocDocumentPropertyManager.getDocumentPropertyByKeyAsString($page, "projectdoc.doctype.common.name"))
Provides access to a document property value by page identifier and document property name.
#set ( $propertyValue = $projectdocDocumentPropertyManager.getDocumentPropertyByKeyAsString(819207, "projectdoc.doctype.common.name"))