Reference a Document Manager component

 

+

Search Tips   |   Advanced Search

 

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.
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 IWWCM tag within other tags, such as HTML. These attributes are not mandatory.
/> Closes a Web Content Management Tag.

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

 

Examples:

 

Display 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" />

 

Display 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" />

 

Display 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" />

 

Display 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>

 

Parent Topic

Present documents in Web content

 

Parent Topic

Reference elements