- Open your representation class.
- Go to the Links tab.
- In the Filter block, set Anchor type to "Page".
- In the Links block:
- Enter a unique code for the filter in the Code field.
- Leave the Generated field empty.
- Set Active link to "Yes".
- Enter a description for the link in the Description field (for example, "Amazon").
The description will be displayed on the right-hand panel of the Query facet screen. - Set Type to "Free".
- Enter the correct URL in the URL field (for example, "www.amazon.co.uk").
- Set the Attribute field to "Simple link".
- Select the Query check box.
- Save and validate your representation class.
You can then open your web page by clicking Description in the right-hand panel of the Query facet screen.
In this example, we will add a link to a representation class Detail and Edit facets to search www.amazon.co.uk for a book with the same title as the current book record being displayed.
- Open your representation class.
- Go to the Links tab.
- In the Filter block, set Anchor type to "Page".
- In the Links block:
- Enter a unique code for the filter in the Code field.
- Leave the Generated field empty.
- Set Active link to "Yes".
- Enter a description for the link in the Description field (for example, "Search for title").
The description will be displayed on the right-hand panel of the Query facet screen. - Set Type to "Free".
- Enter the correct URL in the URL field.
In this example, we will enter "http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords={TITLE}", where {TITLE} is the name of the class property alias that holds the name of the book. It will be replaced with the current value of the TITLE property alias when the link is selected. - Set the Attribute field to "Simple link".
- Select the Detail and the Edit check boxes.
- Save and validate your representation class.
You can then open your web page by adding a value to the TITLE property alias in the Detail or Edit facet screen, and then clicking Description in the right-hand panel of the Query facet screen.