Administration: Device Settings

Device settings allow you to control how portals render on different kinds of devices including desktop browsers, smart phones, and tablets.

On the Administration: Device Settings page, you can create and manage device groups and devices.

Administration: Device Settings: Device Groups

To create a device group:

  1. On the Device Groups tab, click Create.
  2. On the Create Device Group page, give the new device group a name and a display name. The name must be a unique name and is used internally. The display name is the name that is shown in WebCenter Portal. It also must be unique.
  3. In the Devices section, use the arrows to move the available devices that you wish to add to the Selected Devices list.
  4. In the Assets section, select the page template and skin that you want this device group to use.

    Note:

    Click the Advanced Edit Options arrow next to an asset, then Expression Builder to enter an EL expression in the Expression Editor. An EL allows the skin or template to be selected dynamically. If you need EL assistance, a developer can provide an EL expression; see Expression Language Expressions in Developing for Oracle WebCenter Portal.

  5. Click Create.

Administration: Device Settings: Devices

To create a new device:

  1. On the Devices tab, click Create.

    The Create Device page displays, containing three sections: Device, Optional Attributes, and Additional Attributes.

  2. In the Device section, specify the following details:
    • Name - The name of the device. This name must be unique and cannot contain spaces. One use of this name is that it can be located with an Expression Language expression.

    • Display Name - Specify the display name of the device. This name must be unique and will appear in the WebCenter Portal user interface.

    • User Agent - Specify the user agent string. WebCenter Portal identifies a device by comparing the user agent string passed in the request header (comes from the user's device) and the string specified in this field. This parameter does not have to be a literal match with the request header. It is taken to be a regular expression, and you can enter any valid regular expression in this field.

      Note:

      The user agent string is a regular expression and conforms to the syntax specified by the Java platform (java.util.regex.Pattern). As such, certain special characters might need to be escaped with \ if you want to match them. These characters include [\^$.|?*+() and, in some cases, curly braces {}. For example, a parenthesis must be escaped as follows: \(. For further guidance, refer to a good reference on regular expression syntax.

    • Description - (Optional) Specify a description that helps to identify the purpose of the device.

  3. Use the Optional Attributes section to manage attributes such as display resolution height and width. You can edit their default values as required.

    Note:

    Optional attributes do not affect the way portals are rendered on a device. They exist simply to provide a way to specify information about a device that may be useful to a page designer. Portal designers can use Expression Language to access the values of device attributes.

  4. (Optional) In the Additional Attributes section, click Add Attribute and specify a name and value.

    Note:

    Additional attributes do not affect the way portals are rendered on a device. They exist simply to provide a way to specify information about a device that may be useful to a page designer. Portal designers can use Expression Language to access the values of device attributes.

  5. Click Create.