From the Datatype list, choose the type of data that the attribute will store.

Preparing to Add Content 5-5 to the Access tab of the page group that owns the attribute, and click the Clear Cache link. Although the attribute display name has no enforced uniqueness requirement, we recommend that you try to keep it unique across your page groups. If you do not, users will see duplicate names on attribute pick-lists, and will be unable to determine which attribute belongs to which page group. For example, attributes display on a pick-list when a user creates a custom item type or selects custom search criteria.

5. Select Enable Translations if you want users to be able to translate the values

stored in the attribute into different languages. If you clear this check box, the values stored in the attribute will be the same in all languages. 6. For Date, Number, and URL attributes: In the List Of Values field, enter the name of a list of values from which users can choose a value for the attribute. If you are not sure of the name of the list of values, click the List icon and select from the list provided. 7. For PLSQL attributes: In the PLSQL Execute Options radio group, select which privileges to use when executing the PLSQL stored in the attribute: – Public executes the PLSQL with the privileges of the Oracle Portal PUBLIC schema. – Creator executes the PLSQL with the privileges of the schema associated with the user who created the item or page that includes the PLSQL attribute. – Schema executes the PLSQL with the privileges of a specific schema. If you select this radio button, enter the name of the schema in the field provided. If you are not sure of the name of the schema, click the Browse Database Schemas icon and select from the list provided. 8. For Text attributes:

a. In the Length field, enter the number of characters the attribute can store.

Values can be provided only when the Display Option is Single-line Field. If you specify a length and then select a Display Option of Multi-line Field or List Of Values , the Length field is cleared and becomes display only.

b. In the Display Option radio group, select how to display the attribute when

users add or edit an item or page of a type that includes the attribute: – Single-line Field displays the attribute as a field that contains a single line of text. – Multi-line Field displays the attribute as a field that contains multiple lines of text. Note: The list of values must already exist. Multi-valued attributes are not supported for lists of values. That is, users are able to choose only one value from an attribute list of values. This means that attribute values can be displayed in combo boxes and pop-ups, but not as check boxes, drop-down lists, or radio buttons. 5-6 Oracle Fusion Middleware Users Guide for Oracle Portal – List Of Values displays the attribute as a list from which users can choose a value. If you select this radio button, enter the name of the list of values in the field provided. If you are not sure of the name of the list of values, click the List icon and select from the list provided.

9. Click OK.

5.2.1.3 Deleting an Attribute

When you delete an attribute, you also remove the attribute and its values from any items and pages that include it. Take care when deleting an attribute from the Shared Objects page group. Attributes in the Shared Objects page group may be used across page groups. Deleting an attribute from Shared Objects removes it from all page groups that use it. To delete an attribute:

1. Use the Navigator to browse to the attribute that you want to delete.

2. In the row for the attribute, click the Delete link.

3. In the confirmation page, click Yes.

5.2.2 Working With Item Types

Item types define the contents of an item and the information that is stored about an item. The information stored about an item is determined by the attributes of the item type. By default, Oracle Portal includes several base item types to cover the most common content that contributors will want to add. Oracle Portal also includes several built-in custom item types so that content contributors can get started adding content right out of the box. For a complete list of base and built-in item types, see Section A.4, Base Item Types . However, you may find that you want to store more information about your items than the built-in item types allow. If this is the case, you can extend the built-in item types to meet your requirements. You can add different attributes to the built-in item types to store exactly the information that you want. You can also add calls to PLSQL and HTTP procedures and even pass attributes to the parameters of those procedures. For example, if the Review item type includes a Search attribute to store a search string, you could add a procedure call to a search engine and pass the search string to that search engine. When users run the search engine, the search results for the search string are displayed. If you prefer, you can create your own item types. You can base an item type on one of the base item types. Basing your item type on a base item type means that your item type will inherit certain attributes. You can then extend your item type to include other attributes and procedure calls. You can also choose to base your item type on Note: The list of values must already exist. Multi-valued attributes are not supported for lists of values. That is, users are able to choose only one value from an attribute list of values. This means that attribute values can be displayed in combo boxes and pop-ups, but not as check boxes, drop-down lists, or radio buttons.