Adding a parameter to a page

Page parameters are used to pass values to a page. This means that the information displayed on a page can be different depending on where the page is called from, or on who is viewing the page.

NoteTo add a parameter to a page, you must have at least one of the following privileges:

To add a parameter to a page:

  1. In the Navigator, click Properties next to the page with which you want to work.

  2. Click the Parameters tab.

    Tip: If you cannot see the Parameters tab, the parameters and events page group setting has not been enabled.

  3. In the Parameter Name field, enter a name for the parameter.

    Note: The name must be unique within the page, and can contain up to 200 characters. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) and the underscore (_) character. Do not use spaces or other special characters.

  4. Click Add.

    The parameter is added to the page and you can edit its properties in the Page Parameter Properties section.

  5. In the Display Name field, enter a descriptive name for the parameter. If you allow users to customize the value of this page parameter (by selecting the Customizable check box), the display name appears on the Customize Page: Parameters tab.

    Note: The display name can contain up to 4000 characters.

  6. (Optional) In the Default Value field, enter the value that you want to be assigned to the parameter if no other value is provided.

  7. (Optional) Select Customizable if you want users who customize the page to be able to provide their own value for the parameter.

  8. (Optional) In the Description field, enter a description of the parameter. If you allow users to customize the value of this page parameter (by selecting the Customizable check box), the description appears on the Customize Page: Parameters tab.

    Tip: Use the description to provide users with hints or an example of what kind of value to provide for the parameter.

  9. Click OK to return to the Navigator.

Related topics

Passing values to portlet parameters