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 ATG 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:

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:

<ATG10dir>/PubPortlet/PubPortlets.ear/portlets.war/html/ProjectsPortlet

The preview URL can 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.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices