How to add a url to launch a web page

This ‘How to’ provides information on how to use the representation class link setting to launch a web page. The following development processes demonstrate how to create a link to:

Example 1 – Fixed URL link

In this example, add a link to a representation class ‘Query’ facet to open www.amazon.co.uk.

  1. Open your representation class.

  2. Select the Links tab.

  3. In the Filter block, set the following field value:

    Anchor type: Select Page. The description (see the Links block below) will appear on the right panel of the Query facet screen as a link.

  4. In the Links block, set the following field values:

    Code: Enter a unique code for this filter.

    Generated: Leave this check box cleared.

    Active link: Leave this check box selected.

    Description: Enter a description for this link, for example, Amazon. The description will appear on the right panel of the Query facet screen as a link.

    Type: Select Free.

    URL: Enter your URL. For this example, enter www.amazon.co.uk.

    Attribute: Leave as Simple link.

    Query: Select this check box. In this example, we only want the link to appear on the Query facet.

  5. Save and validate your representation class.

  6. To open your web page, click the < Description > link in the right panel of the Query facet screen.

.

Example 2 – Dynamic URL link

In this example, add a link to a representation class ‘Detail’ and ‘Edit’ facet to search www.amazon.co.uk for a book with the same title of the current book record being displayed. Use the following search URL {Title}. This will be dynamically set when the link is launched by the user.

http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords={TITLE}

  1. Open your representation class.

  2. Select the Links tab.

  3. In the Filter block, set the following field value:

    Anchor type: Select Page. The description (see the Links block below) will appear on the right panel of the Query facet screen as a link.

  4. In the Links block, set the following field values:

    Code: Enter a unique code for this filter.

    Generated: Leave this check box cleared.

    Active link: Leave this check box selected.

    Description: Enter a description for this link, for example, Search for title. The description will appear on the right panel of the Query facet screen as a link.

    Type: Select Free.

    URL: Enter your URL. In this example, enter http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords={TITLE}.

    TITLE is the name of the class property alias that holds the name of the book. The {TITLE} element of the URL will be replaced with the current value of the TITLE property alias (field) at the point the link is selected.

    Attribute: Leave as Detail.

    Detail: Select this check-box. In this example, we want the link to appear on the Detail facet.

    Edit: Select this check box for the link to also appear on the Edit facet.

  5. Save and validate your representation class.

  6. To open your web page, add a value to the TITLE property alias (field) in the detail or edit facet screen then click the < Description > link on the right panel.