You can set up preview for specific asset types by configuring one or more URLs as extensions of the view mapping system (described in Customizing Asset Display in the Content Administration Programming Guide). Preview URLs map repository item descriptors to asset preview pages. If an asset type is configured with a preview URL, the Business Control Center displays that URL in the Preview Launcher dialog, invoked by clicking Preview As in the asset’s properties window. If other URLs display (as configured through preview components), the asset preview URL is included among them and is differentiated by a yellow background.
You configure asset preview by setting the atgPreviewURL
attribute on the appropriate itemView
or itemViewMapping
:
Set
itemView
to display the same preview button on all tabs of the view.Set
itemViewMapping
to display a different preview button on each tab of a view.
The atgPreviewURL
attribute takes the following form:
atgPreviewURL=
preview-url
where preview-url
points to the JSP where the asset is previewed. This setting is parsed by the page fragment previewURLParser.jsp
, located in:
<ATG11dir>/PubPortlet/PubPortlets.ear/portlets.war/html/ProjectsPortlet
When configured in this manner, you can use the Context menu to move assets to the asset tray. The preview URL can also reference an independent page that you create for previewing assets; it can also be a page within a Web application that is installed on the Business Control Center server.