Outputs the data of an SQL content repository item.

Class Name

atg.droplet.ContentDroplet

Component

Not provided

Required Input Parameters

repository

The target repository.

item

The target content repository item.

Optional Input Parameters

bytes

Sets a limit to the amount of content that is output, used to ensure that a large file does not create a runaway request. Byte limit is not exact, so output is liable to be unreadable by the browser.

Output Parameters

mimeType

Set to the file’s MIME type.

Open Parameters

output

Executes before the item content is rendered.

Usage Notes

ContentDroplet can be used together with ContentFolderView to obtain the contents of all items in one or more content repository folders.

Note: You cannot use this servlet bean to render dynamic content. For example, if a content repository item contains JSP or HTML, only the source can be rendered.

You must create the properties file for ContentDroplet in <atg9dir>/home/localconfig/atg/dynamo/droplet and set it as follows:

$class=atg.droplet.ContentDroplet
mimeTyper=/atg/dynamo/servlet/pipeline/MimeTyper

Example

See ContentFolderView

 
loading table of contents...