Document Manager Library Component Tag

 

+
Search Tips   |   Advanced Search

 

The Document Manager Library Component tag is used to reference a Document Manager Component stored in the Component Library.

<DocumentManagerLibCmpnt name=" " 
                         scope=" " 
                         attributeName=" " 
                         format=" " 
                         convertTo=" " 
                         start=" " 
                         end=" " />

<DocumentManagerLibCmpnt Opens a Component Tag.
name=" " Name of the PDM Library Component.
scope=" " The scope specifies what will be returned from the selected Document Manager document:

document

This will display the content of the Document Manager document.

documenturl

This will display the URL to the Document Manager document.

attribute

This will display a particular attribute of the Document Manager document.
attributeName=" " If scope="attribute" you must use this parameter to specify the attribute to display.
format=" " This parameter accepts any format string which is valid under the rules defined in the Java class "java.text.SimpleDateFormat".

Example: If an attribute is a "date", the format of the date can be specified here. E.g. - "dd/MM/yyyy" would format a date as 16/08/2004.

convertTo=" " Used to specify a mime type that the document should be converted to. E.g. - "text/html" or "application/pdf".
start=" "

end=" "

The Start and End attributes are used to wrap the data returned by an Web Content Management Tag within other tags, such as HTML. These attributes are not mandatory. See the Using Start and End Attributes topic for more information on using these attributes.
/> Closes a Web Content Management Tag.

 

Examples:

Displaying the attributes of a Document Manager document:

To display the "title" of a Document Manager document, the following tag could be used:

<DocumentManagerLibCmpnt name="component_name" scope="Attribute" attributeName="title" />

To display the "last modified" date of a Document Manager document, the following tag could be used:

<DocumentManagerLibCmpnt name="component_name" scope="Attribute" 
attributeName="lastModified" format="dd/MM/yyyy" />

Displaying the content of a Document Manager document: To display the content of a Document Manager document, the following tag could be used:

<DocumentManagerLibCmpnt name="component_name" scope="Document" />
Depending on the content type being returned, you may also need to convert the content to HTML. In this case you would use the following tag:
<DocumentManagerLibCmpnt name="component_name" scope="Document" convertTo="text/html" />

Displaying the URL of a Document Manager document: To display the URL of a Document Manager document, the following tag could be used:

<DocumentManagerLibCmpnt name="component_name" scope="DocumentURL" convertTo="text/html" />

Displaying the URL of a Document Manager document as a link: To display the URL of a Document Manager document as a link in a web page, the following tags could be used:

<a href="
<DocumentManagerLibCmpnt name="component_name" scope="DocumentURL" convertTo="text/html" />
">
<DocumentManagerLibCmpnt name="component_name" scope="Attribute" attributeName="title" />
</a>

Parent topic: Referencing Document Manager Components.

Parent topic: Web Content Management Tags.


IBM Workplace Web Content Management - V5.1.0.1 -

 

Workplace Web Content Management is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.