You're viewing help content for version:
- 6.2
- Older Versions
Asset Picker lets you search for one or more assets based on their MIME type. It also lets you fetch the associated metadata for these assets.
You can launch Asset Picker from a different context that provides a customizable view. You can pass Asset Type (Image/Video/Text) and Selection mode (Single/Multiple) as contextual information for Asset Picker, which remains intact throughout the selection.
You can integrate Asset Picker with any web page by adding its URL http://<host>:<port>/aem/assetpicker to an IFrame, popup window, tab, and so on.
You can pass the following request parameters in a URL to launch Asset Picker in a particular context:
- type: image/ text/ video
- mode: single/ multiple selection
- typeFilters: enable/disable
For example, pass the parameters in the following way:
http://<host:port>/aem/assetpicker?mode=single&mimeType=video
Asset Picker uses the HTML5 Window.postMessage message to send data for the selected asset to the recipient. In addition, Asset Picker sends data and notification for operations performed on its interface (for example Done, Cancel, and other operations) in following format:
Object {
config: Object
action: "done"
data: Array[1]
0: Object {
img: "http://<host>:<port>/content/dam/geometrixx-outdoors/products/equipment/
Sparrow.mov/_jcr_content/renditions/cq5dam.thumbnail.319.319.png"
path: "/content/dam/geometrixx-outdoors/products/equipment/Sparrow.mov"
size: "93.7 KB"
title: "Sparrow"
type: "video/quicktime"
url: "http://<host>:<port>/content/dam/geometrixx-outdoors/products/equipment/Sparrow.mov"
. . . }