When you create item types, consider how the item’s properties should display in the Details pane. Do you want to display properties on tabs? Should some properties always appear as read-only (as is the case with properties on the Info tab for products)? Do you want to display a subset of the properties defined for the item type in the item descriptor? If your item type requires none of those configurations, you can use the item mapping defined for all item types and you don’t need to perform any additional tasks, because all item properties will display in the Details pane automatically when an item of that type is selected.
If you want to configure the displaying of properties, create an item mapping and other view mapping resources as follows:
Create two item mappings for each custom item type: one that works in conjunction with
AssetManager.view
mode and one that works in conjunction withAssetManager.edit
mode. When a user requests a page that includes the custom item type, one of these item mappings is returned containing the appropriate other view mapping objects.Provide values to the properties as necessary. Set the
formHandler
property toAsset Manager
AssetRepositoryFormHandler
. Save your changes.If you want to disperse the item’s properties across tabs, create one item view mapping for each mode the tab supports. For example, the product Basics tab has two item view mappings (one for
AssetManager.edit
, one forAssetManager.view
), but the Info tab has one (AssetManager.view
). Then, add the name of the edit map mode item view mappings in the order they should appear in the Details pane toviewMappings
property of the item’s edit map mode item mapping. Do the same for the view map mode item view mappings and item mapping.Specify the properties that should display as described in Specifying Properties to Display.
Update the task configuration file to support your new item mapping as described in Updating View Mapping Settings in a Task Configuration File.