This section describes how to configure a custom plugin for use with the Asset Picker.

In most cases, you can use the default Asset Picker container pages to call your plugin component without any additional configuration of these pages. Also, if your objective is simply to make assets from a custom repository available for searching or browsing in the ATG Business Control Center, you can use the default plugin pages to do so (see Default Search and Browse Plugins). You need to create new pages only if the default UI handling does not meet your business requirements.

In all cases, to allow your plugin to be displayed and used in the ATG Business Control Center, you must register it with the view mapping repository. To do so, you need to configure the following view mapping items:

  • An itemView specifying the JSP that represents the plugin.

  • An itemViewMapping representing the tab—for example, a Search tab—that presents the plugin to the user.

  • An itemMapping, which declares the asset type and view mode for which the plugin is used.

You create view mapping items through the Publishing > View Mapping option in the ACC. For detailed instructions, see Creating New View Mapping Repository Items section of the Customizing Asset Display chapter in the ATG Content Administration Programming Guide.

Information on key properties for each of the view mapping items that you need for the plugin is given below.

Plugin itemView

The following list describes key properties in the itemView you create for an Asset Picker plugin. As a model, use the DefaultAssetPickerVFSSearchitemView.

Plugin itemViewMapping

The itemViewMapping represents the tab that you want to appear on the page. As a model for the itemViewMapping, use DefaultAssetPickerVFSSearch.

There is one key property to define in the itemViewMapping:

Plugin itemMapping

The following list describes key properties in the itemMapping you create for the Asset Picker plugin. As a model, use the Default Asset Picker Mapping for ConfigFileSystem Assets.

Note that the Default Asset Picker Mapping for ConfigFileSystem Assets uses the attributes property to identify a component that allows users to browse assets as an expandable tree; this behavior is optional. For more information, see Creating a Tree-Based Asset Picker Plugin.

 
loading table of contents...