WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Reference a Document Manager component

The Document Manager component tag is used to reference a Document Manager component.

<DocumentManagerComponent name=" " scope=" " attributeName=" " format=" " convertTo=" " start=" " end=" " />
<DocumentManagerComponent Opens a Component Tag.
name=" " Enter the name and library of the component being referenced. For example, name="library/item". To use the library specified in the URL of the current page, use name="./item".
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" use this parameter to specify the attribute to display.
format=" " Used to specify the display format of dates and numbers. See Setting parameters to format dates and Note on formatting numbers for further information.
convertTo=" " Used to specify a mime type that the document should be converted to. For example, "text/html" or "application/pdf".
start=" "

end=" "

The Start and End attributes are used to wrap the data returned by an IBM® Workplace 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.

In previous versions of Web Content Management, this tag was named "DocumentManagerLibCmpnt". You can still use this tag name, but it will be converted to "DocumentManagerComponent" when saved.

 

Examples:

 

Displaying the attributes of a Document Manager document:

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

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

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

<DocumentManagerComponent 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:

<DocumentManagerComponent 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:

<DocumentManagerComponent 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:

<DocumentManagerComponent 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=" <DocumentManagerComponent name="component_name" scope="DocumentURL" convertTo="text/html" /> "> <DocumentManagerComponent name="component_name" scope="Attribute" attributeName="title" /> </a>

 

Displaying images from a document library:

To display an image stored in Document Manager the following tags could be used:

<img src=" 
<DocumentManagerComponent name="component_name" scope="DocumentURL" convertTo="text/html" />
" />

 

Parent topic:

Referencing elements

 

Parent topic:

Presenting documents in Web content