Adding attributes to a custom item type

You can add attributes to your custom item types to store additional information about items or to pass information to procedures.

Note: You must be the page group administrator, the portal administrator, or have Manage privileges on All Page Groups to add attributes to a custom item type.

To add attributes to a custom item type:

  1. In the Navigator, click the Page Groups tab.

  2. Navigate to the following path:

    Path: Page Groups > PageGroupDisplayName > Custom Types > Item Types

    where PageGroupDisplayName is the page group in which the custom item type was created.

    Note: If the custom item type is shared, it will be in the Shared Objects page group.

  3. In the row for the custom item type that you want to edit, click Edit.

  4. Click the Attributes tab.

  5. In the Available Attributes list, select the attributes that you want to add to the custom item type, and click moveright.gif to move them to the Selected Attributes list.

    Notes:

  6. Click Apply to add the attributes to the custom item type and display them in the Attribute Properties section.

  7. For each attribute:

    1. In the Default Value field, enter the value to give to the attribute if users do not specify their own value when they add an item of this type.

      Notes:

      • The attribute's default value is used for all items created of this item type. You can allow users to modify this value by including the attribute in the add and edit item wizards. If you do not want to provide a default value, leave this field blank.

      • You can use the variable #SYSDATE as the default value for attributes based on a date datatype. This defaults to the creation date of the item. You can use the variable #USER as the default value for attributes based on a text datatype. This defaults to the currently logged in user. These variables can be used only for default values, not for the actual value of date or text fields.

    2. Select the Required check box if users must enter a value for this attribute. Attributes which are required will be displayed with the required icon .

    3. Select whether the attribute should be included on the add and edit item wizards for this item type.

  8. Click OK.

Notes

Related topics

What is an item?
Creating an attribute
Creating a custom item type
Changing a custom item type's basic properties
Adding procedure calls to a custom item type
Deleting a custom item type
Choosing the item types available in a page group
Changing the attributes displayed in a region