To add preview functionality to a Properties tab for an asset type, follow these steps:
If necessary, create a JSP to use for the asset preview.
In the ACC, choose Publishing > View Mapping
Click List in order to list items of type
itemMapping
.Click New Item to create a unique
itemMapping
for this asset type.Provide the required mapping information:
itemName
,itemPath
, andmode
(set toedit
).Note: Set the
name
field to * (asterisk).Edit the attributes property by clicking on
...
In the Attributes dialog, click Add.
In the dialog, click New Item.
In the New Item dialog, enter the relative Nucleus path to the preview page URL. For example:
/dynamusic/venueDetails.jsp?itemID=$id
Click OK.
In the New Dictionary Entry dialog, enter
atgPreviewURL
as the dictionary key, then click OK.The Attributes dialog redisplays with the following settings:
Click OK to close the Attributes dialog.
In the New Item dialog, click OK to save the new
itemMapping
.
In the Business Control Center, reload the asset’s editing page and verify that a Preview button appears.