When you configure your database, you import the viewmapping.xml files that contain the view mapping items necessary for running your applications. You can see view mapping items in the ATG Control Center under Publishing > View Mapping. When you want to modify existing items, locate them in the ACC. Creating new items is also performed in the ACC as described in the Creating View Mapping Repository Items section of the Customizing Asset Display chapter in the ATG Content Administration Programming Guide.

The process for creating item view mappings used by Asset Manager applications is slightly different from the one recommended for ATG Content Administration. See the instructions below.

Creating Item View Mappings

When you create an item view mapping for an Asset Manager application, you must specify its display name in a resource bundle. Using resource bundles makes it possible for you to localize resources; it also simplifies the process of changing UI labels. Follow these steps:

  1. In a custom resource bundle, include a key and value pair for the item view mapping (key) and its display name (value). For example: customtab=Manufacturing. For more information on resource bundles, see Changing UI Labels.

    Note: It is recommended that you create a new resource bundle that contains your implementation-specific information rather than modifying one that came with an ATG application. Resource bundles should exist in a directory such as <ATG10dir>/home/locallib that automatically adds files to your CLASSPATH.

  2. Create an item view mapping by following the steps provided in the Creating View Mapping Repository Items section of the Customizing Asset Display chapter in the ATG Content Administration Programming Guide with the following modifications:

    • Add a new attribute value to the item view mapping. To do so, click the Attribute Values text box, then the button beside it. In the Attribute Values dialog box, click New Item, set the Value property to the path and name of your resource bundle, and then click OK. When prompted for a name for the new entry, enter resourceBundle, then click OK.

    • In the Display Name text box, enter the resource key that you used in the resource bundle (customtab).


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