29 Configure the Map

The purpose of mapping is to enable site replication and the sharing of CSIElement assets. The concepts behind mapping are identical to those for Template assets. For more information see, Template Sharing and Site Replication.

Note:

Skip this step if you are designing a non-replicable site.

Using the Map form, you will:

  • Map each key in the render:lookup tags of the template's element logic to a value that will be used by the element logic.

  • Map each key's value to the asset information that must be used in the element logic: asset, asset type, attribute name, or template name.

When the Template asset is saved, the map is written to the Template_Map table.

In the Map form, fill in the fields as explained in this step:

  1. The Key field represents a value that the element logic will look up. Enter the key that is named in a render:lookup tag of the element logic.
  2. The Type field identifies the type of asset information to be accessed. Select one of the following options:
    • Template Name: Maps a template name to the key value (which you will specify in the Value field, in the next step). The information that will be accessed is a template name that matches the value that you will specify in the next step. For an example, see Template Asset: Sample Map.

    • Asset Type: Maps an asset type to the key value. The information that will be accessed is an asset type, equal to the value that you will specify in the next step.

    • Asset (Type:Name): Maps an attribute type:name to the key value. The information that will be accessed is an asset whose type and name match the value that you will specify in the next step.

    • Asset (Type:ID): Maps an attribute type:ID to the key value. The information that will be accessed is an asset whose type and name match the value that you will specify in the next step.

  3. In the Value field, enter a value for the key. This value will be looked up by the element logic when the CSIElement asset is invoked.
  4. In the siteid field, select the name of the site to which the mapping applies.
  5. To add a key, click Add Another and repeat the steps in this section.